Page MenuHomePhabricator

desktop view on mobile domain
Closed, ResolvedPublic

Description

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)

Version: unspecified
Severity: normal

Details

Reference
bz46473

Event Timeline

bzimport raised the priority of this task from to High.
bzimport set Reference to bz46473.
bzimport added a subscriber: Unknown Object (MLST).

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.