Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » mobile module: redirect loop

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 964 Views
  • Anatol
    Avatar
    126 Posts

    mobile module: redirect loop Link to this post

    There seems to be a problem with the $FullSiteLink feature of the mobile module. When I test this on a mobile device I end up with an endless redirect loop between mydomain.com and m.mydomain.com .

    $FullSiteLink in a template creates a link with ?fullSite=1 at the end. The MobileSiteControllerExtension then *should* create a cookie so that for 30 minutes a mobile device would display the actual (non-mobile) site. This doesn't work. The same problem appears with the "full site" link on http://m.demo.silverstripe.com/ .

    I tried to print_r($_COOKIE), but it doesn't print any 'fullSite' cookie, neither on a mobile device nor on a desktop browser. Is there not enough time or any other problem with trying to create the cookie just before the redirect?

    Any hints would be highly appreciated. For now I will just remove the link but I would love to find a solution for this.

    Cheers!
    Anatol

  • tksano
    Avatar
    Community Member
    9 Posts

    Re: mobile module: redirect loop Link to this post

    I have the same problem as Anatol's. Any advice from a SilverStripe expert?

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: mobile module: redirect loop Link to this post

    Running the latest mobile module? A couple recent patches should fix the issues

    https://github.com/silverstripe/silverstripe-mobile/pull/4
    https://github.com/silverstripe/silverstripe-mobile/pull/3

  • tksano
    Avatar
    Community Member
    9 Posts

    Re: mobile module: redirect loop Link to this post

    Yes, installing the latest mobile module solved the problem. Thanks!

    964 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.