Last modified: 2014-11-05 17:25:30 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 T38601, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36601 - Mobile redirect should happen after www.wikipedia.org -> en.wikipedia.org redirect
Mobile redirect should happen after www.wikipedia.org -> en.wikipedia.org red...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Apache configuration (Other open bugs)
wmf-deployment
Other other
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-07 21:09 UTC by Eric Case
Modified: 2014-11-05 17:25 UTC (History)
11 users (show)

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


Attachments

Description Eric Case 2012-05-07 21:09:55 UTC
Hi folks,

We just noticed the following:

1) in Safari/Mac 5.1.5, set your user-agent to Safari iOS 4.3.3/iPhonr
2) visit www.wikipedia.org/wiki/.is
3) it redirects to a broken URL — http://www.m.wikipedia.org/wiki/.is
Comment 1 Liangent 2012-05-08 15:27:43 UTC
Changing subject to reflect the real issue. This bug is not limited to Safari.
Comment 2 Mark A. Hershberger 2012-05-08 15:36:08 UTC
This is apparently the what happens when you access http://wikipedia.org/wiki/not_a_page as well.  Maybe we could just take the redirect off of www.wikipedia.org and wikipedia.org.
Comment 3 Eric Case 2012-07-15 17:24:51 UTC
(bump)
Comment 4 Jon 2012-10-19 19:39:17 UTC
http://www.wikipedia.org/wiki/ works for me - directs me to http://en.wikipedia.org/wiki/Main_Page
Comment 5 Eric Case 2012-10-27 19:33:18 UTC
I'm still seeing this issue:

1) using Safari/Mac 6.0.1 (8536.26.14), set User Agent to "Safari iOS 5.1 — iPhone"
2) paste `www.wikipedia.org/wiki/.is` into the URL bar and try to visit it
3) get redirected to `http://www.m.wikipedia.org/wiki/.is` with this error: "Safari can't open the page "http://www.m.wikipedia.org/wiki/.is" because Safari can't find the server "www.m.wikipedia.org"
Comment 6 Eric Case 2013-02-17 20:22:18 UTC
The problem is that your redirect isn't adding a locale by default.

For mobile user agents, www.wikipedia.org/wiki/.is

redirects to www.m.wikipedia.org/wiki/.is (which doesn't work)

instead of en.m.wikipedia.org/wiki/.is (which does work).

As a workaround we'll hard-code `en.` in our app until this is fixed.

-Eric
Comment 7 Platonides 2013-04-04 21:39:34 UTC
Simple command to reproduce it:
wget -U "Safari iOS 4.3.3/iPhone" http://www.wikipedia.org/wiki/.is
Comment 8 Arthur Richards 2013-04-04 21:42:45 UTC
I've been able to reproduce this with an Android device as well as iOS devices.
Comment 9 Glaisher 2014-11-05 17:25:30 UTC
This is now fixed. https://www.m.wikipedia.org/wiki/.is redirects to https://en.m.wikipedia.org/wiki/.is

Gerrit change #132623

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


Navigation
Links