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

--- Comment #3 from Brion Vibber <br...@wikimedia.org> 2011-10-31 19:18:38 UTC 
---
I can confirm that IE8 on WinXP behaves as described above (drops the #test).

Looking at the code for Special:PermanentLink it looks like the replacement of
the #test is actually something that Firefox is doing explicitly in the browser
side...

Hash fragments are not actually sent to the server, so the server-side
processing has no way to know if there is one or not. It just empties out the
existing parameters and replaces them with an 'oldid' param set to whatever the
subpage parameter was.

So when you go to <http://en.wikipedia.org/wiki/Special:Permalink/1#test>

MediaWiki sees that you went to "/wiki/Special:Permalink/1". It sends you back
to "/wiki/index.php?oldid=1".

Your browser may then be smart enough to say "maybe you wanted to keep that
#test on the redirected URL?" and add it on... but MediaWiki never saw it in
the first place.

Only way to fix this as a general case I can think of would be to redo it to
run the redirect through JavaScript instead of as an HTTP redirect; client-side
JavaScript could detect the fragment on document.location and preserve it when
navigating over to the target page.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to