Jump to:

10844 Posts in 2515 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Link mapping module is unreliable

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 526 Views
  • Ku$h
    Avatar
    Community Member
    14 Posts

    Link mapping module is unreliable Link to this post

    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... http://www.silverstripe.org/migrating-a-site-to-silverstripe/show/19008

    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: http://www.bridgeinteriors.co.uk/case-studies/abel-alarm-reception-area/image/40_8/

    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 http://documentlogic.co.uk/pdf and it's an incredibly simple rewrite!

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

    Thanks.

  • joelg
    Avatar
    Community Member
    129 Posts

    Re: Link mapping module is unreliable Link to this post

    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'
    ));

    Joel

  • joelg
    Avatar
    Community Member
    129 Posts

    Re: Link mapping module is unreliable Link to this post

    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
    Avatar
    Community Member
    134 Posts

    Re: Link mapping module is unreliable Link to this post

    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: https://github.com/NobrainerWeb/Silverstripe-SEORedirect

    526 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.