Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Link mapping module is unreliable

Go to End

4 Posts   1321 Views

Pixel Labs

Community Member, 14 Posts

14 March 2012 at 5:29am

Hi, apologies for duplicating this post but the original thread this was mentioned in is not getting much exposure (and it's the wrong forum)
See it here...

I've been doing some testing and it turns out that the Link mapping module isn't working in all cases. The annoying thing is I cannot find any sort of pattern to when it will and wont work.

Here's an example of a redirect that is set up in the Linkmapping module but doesn't work:

Most of the time it's URLs that are long winded and awkward like this, but there are examples of long winded urls that do work just as well.
Conversely, this simple url doesn't work and it's an incredibly simple rewrite!

Please help, or at least add this as a known issue to the module documentation.



Community Member, 134 Posts

16 April 2013 at 7:15pm

Hi Kush,

I managed to get the link mapping module working under SilverStripe 2.4.4 – the reason why it didn't work was due to the routes which was never kicked in.

I added this to my config file in mysite and then the redirection worked as expected:

Director::addRules(2, array(
'$URLSegment//$Action/$ID/$OtherID' => 'LinkMappingFrontController'



Community Member, 134 Posts

16 April 2013 at 7:18pm

By the way, there was also an error regarding the dropdown field.

I simply changed the treedropdownfield to a SimpleTreeDropdownField from Uncle Cheese DataObjectManager.

This worked also.

Nobrainer Web

Community Member, 138 Posts

6 May 2013 at 5:28pm

If you are having problems with the Link Mapping module, maybe you should have a look at my SEORedirect module for Silverstripe 2.4.
The legacy URLs/urls to redirect are added to a CTF on the page the link to - that's how i like it. But should be easy to create an ModelAdmin for the redirects.

Have a look and let me know what you think: