Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Fix "Full Site" behaviour #10

sminnee opened this Issue · 1 comment

2 participants



Currently the "Full Site" link doesn't work when redirecting mobile devices to the mobile domain automatically.

A cookie is set, but it doesn't appear to be shared between the full site and the mobile site. Perhaps the domain argument needs to be set for setcookie()?

Would this work if the mobile site was "" instead of a subdomain ""?

Automatic redirection behaviour:

When first redirected to mobile site on a mobile device, set a cookie "onMobile" true and another "onFullSite" false to keep track of the state
When full site requested, set another cookie "onFullSite" true and set "onMobile" to false, and check the cookie states to ensure automatic redirects to the mobile site don't occur any longer
When mobile site accessed again after viewing the full site, set "onMobile" true and "onFullSite" false, re-enabling automatic redirects to the mobile site


A suggested change/fix: #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.