Last modified: 2014-06-03 16:11:20 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 T68080, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66080 - Variant link prevents mobile redirect
Variant link prevents mobile redirect
Status: RESOLVED DUPLICATE of bug 51753
Product: MobileFrontend
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-03 16:06 UTC by Jimmy Xu
Modified: 2014-06-03 16:11 UTC (History)
6 users (show)

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


Attachments

Description Jimmy Xu 2014-06-03 16:06:12 UTC
On zhwiki in addition to /wiki/ we have /zh-cn/ etc which act like
?variant=zh-cn. Google often index links with these variant prefix
therefore causing users to stuck on the desktop version.

Compare:

$ curl -I -H 'User-Agent: iPhone' https://zh.wikipedia.org/wiki/Foobar
HTTP/1.1 302 Found
Server: nginx/1.1.19
Date: Tue, 03 Jun 2014 16:04:19 GMT
Content-Length: 0
Connection: keep-alive
Location: https://zh.m.wikipedia.org/wiki/Foobar
Accept-Ranges: bytes
X-Varnish: 1458822202
Age: 0
Via: 1.1 varnish
X-Cache: cp4018 frontend miss (0)
Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
Set-Cookie: GeoIP=::::v6; Path=/; Domain=.wikipedia.org

$ curl -I -H 'User-Agent: iPhone' https://zh.wikipedia.org/zh-cn/Foobar
HTTP/1.1 200 OK
Server: nginx/1.1.19
Date: Tue, 03 Jun 2014 16:03:40 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Content-Type-Options: nosniff
Cache-control: s-maxage=2678400, must-revalidate, max-age=0
Content-language: zh
X-UA-Compatible: IE=Edge
Vary: Accept-Encoding,Cookie
Last-Modified: Wed, 21 May 2014 14:34:51 GMT
X-Varnish: 437179157 425149316, 1791902241 1778144363, 2014846228
Via: 1.1 varnish, 1.1 varnish, 1.1 varnish
Age: 29564
X-Cache: cp1052 hit (1), cp4016 hit (2), cp4010 frontend miss (0)
Set-Cookie: GeoIP=::::v6; Path=/; Domain=.wikipedia.org
Comment 1 Bingle 2014-06-03 16:10:20 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/88rRBoIA
Comment 2 Liangent 2014-06-03 16:11:20 UTC

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

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


Navigation
Links