Last modified: 2014-02-12 23:46:04 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 T51653, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49653 - Forced redirects to m.wikipedia.org (and lack of a return redirect)
Forced redirects to m.wikipedia.org (and lack of a return redirect)
Status: RESOLVED DUPLICATE of bug 58425
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Nobody - You can work on this!
: mobile
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-16 20:01 UTC by Wes Turner
Modified: 2014-02-12 23:46 UTC (History)
13 users (show)

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


Attachments

Description Wes Turner 2013-06-16 20:01:19 UTC
When I enter "http://en.wikipedia.org/wiki/Base64" in my address bar with Chrome on Android, I am force-redirected to "http://en.m.wikipedia.org/wiki/Base64", which is not the URL I entered.

If I then check the "Request Desktop Site" checkbox, the page reloads but I remain at "http://en.m.wikipedia.org/wiki/Base64" and I must manually remove the 'm.' from the URL in the address bar.

Possible solutions:

1. Display a banner with an optional redirect to m.wikipedia.org
2. When "Request Desktop Site" is checked, redirect to wikipedia.org
3. Request a per-domain "desktop site mode" from the Chrome team.

I tend to access the "Desktop Site" when trying to link to TOC/Heading anchors within a page.

I understand that mobile mode is most useful in many situations.
Comment 1 Alex Monk 2013-06-16 20:15:03 UTC
Not part of MediaWiki. Might be the MobileFrontend extension (?), but for now this can go to the Wikimedia product.
Comment 2 Andre Klapper 2013-06-16 21:01:15 UTC
Does not sound like a "Wikimedia > Apache conf" issue to me, hence tentatively moving to MobileFrontend.
Comment 3 Jon 2013-06-18 00:43:00 UTC
I'm not entirely sure what the "Request desktop site" does but I assume it sends a header that we do not respect.

I'd assume this would be a configuration change in the redirector rather than MobileFrontend itself.

If someone can find out what header it sets I'm sure we can get this looked into.

In the mean time if you click the desktop site link at the bottom of the page it should remember and give you the desktop site in future.
Comment 4 Arthur Richards 2013-06-18 00:45:27 UTC
I cannot replicate this problem (I've tried in iOS simulator, with Chrome on my galaxy nexus, and spoofing mobile UA in desktop chrome); the only situation I can imagine this might happen in is if the reporter has cookies disabled.
Comment 5 Arthur Richards 2013-06-18 04:58:01 UTC
Sorry to have been so brief, I had to run as I wrote the response.

'Request desktop site' contains a link to the desktop site with a query string parameter instructing MobileFrontend to toggle into the desktop view (in this case, http://en.wikipedia.org/w/index.php?title=Base64&mobileaction=toggle_view_desktop). When MobileFrontend toggles into desktop view this way and on our particular setup, the 'stopMobileRedirect' cookie gets set. The user will wind up in the desktop view, and the cookie will prevent further automatic redirects to the mobile (.m) version of the site (until the cookie expires [1 month] or the client clears cookies).

I just tested to see what happens with cookies disabled with Chrome on Android, and I just wind up getting redirected back to the mobile site.

Wes, when you tapped 'Desktop' did you stay in the mobile view, or did you see the desktop version of the site (but with en.m.wikipedia.org still in the URL bar)? What device/Android version are you using? Do you have cookies enabled?
Comment 6 Wes Turner 2013-06-18 06:28:13 UTC
(In reply to comment #5)
> Sorry to have been so brief, I had to run as I wrote the response.
> 
> 'Request desktop site' contains a link to the desktop site with a query
> string
> parameter instructing MobileFrontend to toggle into the desktop view (in this
> case,
> http://en.wikipedia.org/w/index.
> php?title=Base64&mobileaction=toggle_view_desktop).
> When MobileFrontend toggles into desktop view this way and on our particular
> setup, the 'stopMobileRedirect' cookie gets set. The user will wind up in the
> desktop view, and the cookie will prevent further automatic redirects to the
> mobile (.m) version of the site (until the cookie expires [1 month] or the
> client clears cookies).
> 
> I just tested to see what happens with cookies disabled with Chrome on
> Android,
> and I just wind up getting redirected back to the mobile site.
> 
> Wes, when you tapped 'Desktop' did you stay in the mobile view, or did you
> see
> the desktop version of the site (but with en.m.wikipedia.org still in the URL
> bar)? What device/Android version are you using? Do you have cookies enabled?

Thanks for the help!

I have cookies enabled.

*A. Starting with "en.wikipedia.org/wiki/Base64"*

1. > Launch Chrome on Android ("Request Desktop Site" defaults to unchecked. Cleared all browsing data.)
2. > Enter "en.wikipedia.org/wiki/Base64"
3. < Redirect to "en.m.wikipedia.org/wiki/Base64"
4. > Check "Request Desktop Site"
5. | Browser reloads "en.m.wikipedia.org/wiki/Base64"
6. > Remove ".m" from URL, press Enter

*B. Starting with "en.m.wikipedia.org/wiki/Base64"* (B[3:])

1. > Launch Chrome on Android ("Request Desktop Site" defaults to unchecked. Cleared all browsing data.)
2. > Enter "en.m.wikipedia.org/wiki/Base64"
3. > Check "Request Desktop Site"
4. | Browser reloads "en.m.wikipedia.org/wiki/Base64"
5. > Remove ".m" from URL, press Enter
Comment 7 Wes Turner 2013-06-18 06:29:33 UTC
Appears to be fixed (from here, at least)! Thanks!

*C. Starting with "en.wikipedia.org/wiki/Base64"*

1. > Launch Chrome on Android ("Request Desktop Site" defaults to unchecked.
Cleared all browsing data.)
2. > Enter "en.wikipedia.org/wiki/Base64"
3. < Redirect to "en.m.wikipedia.org/wiki/Base64"
4. > Check "Request Desktop Site"
5. < Redirect to "en.wikipedia.org/wiki/Base64"
Comment 8 Arthur Richards 2013-06-18 22:26:46 UTC
Ok, I'm totally puzzled about what might've happened - we've made no changes on our end since you initially reported the bug, though perhaps there was something wonky at the architectural level. Glad it's working now, closing and marking 'worksforme' :)
Comment 9 Wes Turner 2013-06-18 22:38:05 UTC
Unfortunately I tried again today and it *does not appear to be working as described in C* above (as it seemed to last night).

For a period of time last night, redirects seemed to be going to "www.m.wikipedia.org", which did not resolve.
Comment 10 Arthur Richards 2013-06-21 00:08:56 UTC
Wes, I am baffled :( Are you still seeing incorrect behavior? If so, can you share your device info (model, OS, version #s, etc). We have no rules to send anything to www.m.wikipedia.org, so no clue how that might've happened...

Has anyone heard other reports of folks experiencing weirdness with redirects?
Comment 11 Jon 2013-06-21 01:19:33 UTC
Wes, are you using the beta or experimental mode of Wikipedia?
Comment 12 Wes Turner 2013-06-21 01:30:57 UTC
@Jon
I was not aware that there are beta or experimental modes of Wikipedia.

@Arthur 
When I am viewing an "m.en.wikipedia.org" page and I select "Request Desktop Site", I am not redirected to the "en.wikipedia.org" page, as enumerated in 'B' and 'C'.
Comment 13 MZMcBride 2013-06-21 02:17:01 UTC
(In reply to comment #6)
> *A. Starting with "en.wikipedia.org/wiki/Base64"*
> 
> 1. > Launch Chrome on Android ("Request Desktop Site" defaults to unchecked.
> Cleared all browsing data.)
> 2. > Enter "en.wikipedia.org/wiki/Base64"
> 3. < Redirect to "en.m.wikipedia.org/wiki/Base64"
> 4. > Check "Request Desktop Site"

Can you provide a screenshot of your phone at step 1 or step 4? I'm not sure what you mean by "check" and "uncheck." These verbs are usually used in the context of a checkbox... I think a screenshot would help. You can attach it to Bugzilla (there's an "Add an attachment" link above).
Comment 14 Jon 2013-06-21 02:49:55 UTC
I cleared all Chrome data.
Entered http://en.wikipedia.org/wiki/Base64
Redirects to mobile (expected)
set request desktop site
Reloads with mobile (expected)
Re enter http://en.wikipedia.org/wiki/Base64
No redirect (expected)

(Chrome Android 4)
Comment 15 Jon 2013-06-21 02:52:43 UTC
Are you asking for a reverse redirect when on an en.m domain to an en.wiki domain?
Comment 16 Jan Zerebecki 2013-10-17 18:28:13 UTC
That is how I understand the reporters description point 2. Btw. having redirects in both directions is for the user functionally equivalent to not having m domains at all, which would also save the redirects. The current behaviour also confused me.

There is a "desktop site"-option in the browser which changes the User-Agent that is sent and a link for the same goal at the bottom of the mediawiki page.

@Wes the Desktop link at the bottom of a page might be a convenient enough alternative.
Comment 17 Jon 2013-11-16 01:54:07 UTC
*** Bug 57127 has been marked as a duplicate of this bug. ***
Comment 18 John Mark Vandenberg 2013-11-16 02:13:19 UTC
I experience this problem frequently.  I might be a special case, but it is exceedingly rare that the mobile interface is what I want, so I have raised bug 57127 for an opt-out user pref.

This feature exists on most browsers on Android, including the stock 'Internet' app and Firefox beta.

On Chrome, it appears to be session based unless the owner fiddles with their phone.
http://www.guidingtech.com/16169/desktop-mode-websites-chrome-android-permanently/

I tried Firefox and the 'Internet' app on Android, and it appears to be session based on those browsers also.
Comment 19 Jon 2013-12-18 17:10:07 UTC

*** This bug has been marked as a duplicate of bug 58425 ***

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


Navigation
Links