Page MenuHomePhabricator

Redirects to mobile version drop the URL hash (anchor)
Closed, ResolvedPublic

Description

Visit
https://en.wikipedia.org/wiki/Underground_Electric_Railways_Company_of_London#Move_to_public_ownership on phone
It redirects to:
https://en.m.wikipedia.org/wiki/Underground_Electric_Railways_Company_of_London

e.g. hash is dropped. We should pass the hash in the redirect
to avoid feedback like this:
https://twitter.com/mumoss/status/351796893216542720


Version: unspecified
Severity: normal

Details

Reference
bz50517

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:57 AM
bzimport set Reference to bz50517.
bzimport added a subscriber: Unknown Object (MLST).

I assume this problem is in the redirector..

Wondering if this is Site requests or Apache conf territory...

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

Max said this was tricky. Max care to explain here?

According to this
http://stackoverflow.com/questions/2286402/url-fragment-and-302-redirects/5915350#5915350

"IE10+, Chrome 11+, Firefox 4+, and Opera will all "reattach" the original URI's fragment after following a 3xx redirection."

I assume we do one of these - if so why does it get dropped?

According to w3c spec fragments from the Location header are honored.
http://www.w3.org/TR/cuap#uri

If the browser isn't doing this this is an issue with the browser not us.
I notice desktop Chrome doesn't have this issue for example.

Jdlrobson claimed this task.

Nothing we can do here. Browser issue.