Last modified: 2014-02-12 23:54:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48473, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46473 - desktop view on mobile domain
desktop view on mobile domain
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-23 00:20 UTC by Arthur Richards
Modified: 2014-02-12 23:54 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Arthur Richards 2013-03-23 00:20:26 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)
Comment 1 Jon 2013-03-30 20:55:05 UTC
What's likely to be the culprit here?
Comment 2 Arthur Richards 2013-04-12 23:06:49 UTC
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.
Comment 3 Arthur Richards 2013-04-12 23:08:13 UTC
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.
Comment 4 Arthur Richards 2013-04-18 01:27:12 UTC
Should be fixed with https://gerrit.wikimedia.org/r/#/c/59778/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links