Page MenuHomePhabricator

Mobile site does not automatically redirect to desktop version (and not possible to use browser "use desktop view")
Open, NormalPublic

Description

This is something I could have sworn was reported previously, but I cannot find the bug for it.

Going to en.m.wikipedia.org from a desktop browser stays on the mobile site rather than redirecting back to the desktop version. This makes it extraordinarily inconvenient when somebody shares a mobile link and a desktop user follows it.

This also breaks the functionality in Google Chrome Mobile where you can check "Request desktop version".

Developer notes

Right now, Varnish checks whether user agent is mobile and then redirects to the mobile domain. We'd need to do something in the opposite direction.
This requires adding Varnish redirection to every mobile page view.
Varnish would need to run the same regular expression we use to detect mobile on the user agent on urls coming into the mobile domain and negate the result.
Not sure how practical this is and whether a performance issue since it would impact all page views.
Not been prioritised so haven't investigated.

Many people intentionally use the mobile site so we'd need to consider those users.

The mobile redirect code is here:
https://github.com/wikimedia/puppet/blob/production/modules/varnish/templates/text-frontend.inc.vcl.erb#L28

It seems "request desktop site" doesn't set any headers - all it does it set the user agent to a desktop user agent, so we can't explicitly distinguish users who have clicked "request desktop site" and users who want to to view mobile domain on desktop :-(

Details

Reference
bz58425

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:18 AM
bzimport set Reference to bz58425.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1506

This is intended behavior - if you've accidentally ended up on mobile site, there's always a link back to desktop. However, mobile site is not restricted to mobile devices and there are even some people who prefer to use it from their PCs.

  • Bug 49653 has been marked as a duplicate of this bug. ***

(In reply to comment #2)

However, mobile site is not restricted
to mobile devices and there are even some people who prefer to use it from
their PCs.

I would think there are far more people who hate clicking links on sites like Reddit only to realise it's a mobile link.

Florian reopened this task as Open.Apr 23 2016, 3:30 PM
Florian triaged this task as Normal priority.
Florian added a subscriber: Florian.

Task T59127: user pref to bypass mobile redirection doesn't seem to be a duplicate of this task, and having in mind, that some users (e.g. https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=9112721#) still would love to get this feature, I'll reopen this task.

Florian removed a subscriber: wikibugs-l-list.
Aklapper lowered the priority of this task from Normal to Low.Dec 24 2016, 1:27 PM
Jdlrobson moved this task from Backlog to Later on the Readers-Web-Backlog (Tracking) board.

We should reconsider this task. Now Minerva is a separate skin and can be used without a mobile domain.

Jdlrobson updated the task description. (Show Details)Oct 1 2018, 6:22 PM
Jdlrobson added a project: User-Jdlrobson.

The fact that we don't honor "Request desktop domain" requests annoys me. I think there is something we can do to check headers. I'll have an investigate.

Jdlrobson updated the task description. (Show Details)Oct 1 2018, 6:35 PM
Jdlrobson renamed this task from Mobile site does not automatically redirect to desktop version to Mobile site does not automatically redirect to desktop version (and not possible to use browser "use desktop view").Nov 5 2018, 3:38 PM
Jdlrobson raised the priority of this task from Low to Normal.
Jdlrobson added a project: Puppet.
Jdlrobson added subscribers: Capankajsmilyo, D3r1ck01.
Capankajsmilyo rescinded a token.
Capankajsmilyo awarded a token.

This is intended behavior - if you've accidentally ended up on mobile site, there's always a link back to desktop. However, mobile site is not restricted to mobile devices and there are even some people who prefer to use it from their PCs.

Why do you think there are people who prefer to use the mobile site on their PCs? I can't seem to find any information on desktop users preferring to use the mobile site.