Last modified: 2014-02-12 23:54:15 UTC
There's a scenario where you can be on a mobile domain (eg en.m.wikipedia.org) and get the desktop view of the site rather than the mobile view. To reproduce: * Go to any article on en.m.wikipedia.org (you should be in the mobile view) * Take an action that would bypass varnish caching (eg opt in to beta or alpha) * Tap 'Desktop view' in the footer * Go to any article on en.m.wikipedia.org (do NOT tap 'mobile view' in the footer - enter the URL manually)
What's likely to be the culprit here?
The problem here is having the stopMobileRedirect cookie set (which will prevent automatic redirection of a mobile device to a mobile domain [eg en.wikipedia.org -> en.m.wikipedia.org]) but directly requesting something from the mobile domain (eg clicking a link to a .m domain, or manually entering en.m.wikipedia.org). If a mobile-specific domain exists (determinable by the use of $wgMobileUrlTemplate), that domain should /always/ return a mobile version of the site, even if the stopMobileRedirect cookie is set.
Forgot to finish... otherwise (if we allow desktop view form a mobile domain), we run a risk of polluting the mobile cache with desktop versions of articles.
Should be fixed with https://gerrit.wikimedia.org/r/#/c/59778/