ucla-oarc-mobile / mwf

UCLA Mobile Web Framework
http://mwf.ucla.edu
Other
86 stars 25 forks source link

Mobile Redirect on "View Full Site" #174

Closed loganfranken closed 10 years ago

loganfranken commented 10 years ago

On a few of our sites, we're encountering the following:

  1. Go to a MWF-enabled site on your phone
  2. Click “View Full Site”
  3. Click on a link within the full site
  4. _BUG:_ You will be redirected back to the mobile site

I'm fairly certain this did not occur in the past, which is leading me to believe this related to our recent upgrade to 1.3. Of course, this could be something particular to our implementation.

ebollens commented 10 years ago

There's a cookie that the MWF deployment drops to remember your preference. Is that cookie sticking to the browser?

loganfranken commented 10 years ago

We've determined that this is an issue with time() returning an incorrect value on our servers, causing the override cookie to always be set to expire in the past.