Last modified: 2014-09-09 18:18:06 UTC
On a mobile device visit... https://en.wikipedia.org/w/index.php?title=Cat ...then visit... https://en.wikipedia.org/wiki/Cat Expected result: both redirect to mobile view (en.m.wikipedia.org) Actual result: only the canonical URL redirects to the mobile view I can only reproduce this bug on the cluster and beta labs. On my local machine, both URLs redirect properly.
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/422pJjh6
This is probably fixed by https://gerrit.wikimedia.org/r/#/c/141576/
Hmm, still seems to be broken on beta labs :(
According to Max this is on purpose. Non-canonical URLs are not redirected by Varnish in order to avoid causing issues with API calls, etc.
Max for completeness can you elaborate? What caching problems might arise?
(In reply to Jon from comment #5) > Max for completeness can you elaborate? What caching problems might arise? Where did anyone say anything about caching? :P It's different kind of problems: you make an API request but suddenly get a redirect, etc.
Could we blacklist API URLs from the redirect rules?
We can. However, index.php and other entry points definitely have their own corner cases, that's why we should only redirect if we're 101% sure it's only a page view.
MaxSem: So you're suggesting that we should only redirect page views and not things like diffs or action=edit, etc.? In that case we should close bug 61489 as WONTFIX and revert the changes that were made to facilitate that. Another possibility would be to specifically whitelist diff URLs for redirection. What do you think of that idea?