Page MenuHomePhabricator

bugzilla Apache rewrite rule omit URL fragment
Closed, DeclinedPublic

Description

Bugzilla let us forge a "short" URL by appending the bug number as a root path. As an example:

https://bugzilla.wikimedia.org/36361

Sometime we would want to reference a comment, but the redirect eats the fragment :(

https://bugzilla.wikimedia.org/36361#c6

Is redirected to:

https://bugzilla.wikimedia.org/show_bug.cgi?id=36361


Version: unspecified
Severity: normal

Details

Reference
bz36411

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:25 AM
bzimport set Reference to bz36411.
bzimport added a subscriber: Unknown Object (MLST).

What browser are you using? WFM on Ubuntu; Linux x86_64; Firefox/13.0

That is an issue on the server side:

$ curl -I 'https://bugzilla.wikimedia.org/36361#c6'
HTTP/1.1 302 Found
Date: Sun, 17 Jun 2012 19:55:59 GMT
Server: Apache
Location: https://bugzilla.wikimedia.org/show_bug.cgi?id=36361
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

No, it's not. Definitely client. The anchor tag is never sent as part of the HTTP request by any browser, it is only interpreted locally within the browser.

I'm not sure if a browser is supposed to carry over the anchor part of the URL when redirected. If it is then this is an upstream bug with the browser. WFM in Chrome 19 and Firefox 13, marking this bug as such.

Indeed I have opened to Apple the radar issue #11687876 (not public)

My bug report has been marked as a duplicate of radar issue #3225447