Last modified: 2014-05-19 19:05:33 UTC
From https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=609193453#Redirect_not_working_right As of FF 29.0.1, redirects to section links are off if the page contains collapsed elements before the section link. Was fine in FF 28. Looks like a race condition between the collapsing code and mediawiki.action.view.redirectToFragment.js Example link: https://en.wikipedia.org/wiki/Wikipedia:NMOTORSPORT Should go to https://en.wikipedia.org/wiki/Wikipedia:Notability_%28sports%29#Motorsports Second link works, first link doesn't; through the redrect-to-section, you end up below the "Motorsports" section. Offset from the intended destination appears to match the height of the collapsed FAQ box at the page top. The issue is not limited to en-WP, same behavior also observed at the Commons. Try https://commons.wikimedia.org/wiki/COM:NETCOPYRIGHT This should go to https://commons.wikimedia.org/wiki/Commons:Copyright_rules_by_subject_matter#Internet_images but actually ends up too far down, again the offset appears to correspond to the combined heights of the two collapsed elements above that section.
I can confirm this for Firefox 29; comments in Village Pump say that there is no issue in Firefox 28.
...and clicking the browser's address bar and pressing Enter fixes the problem.
Another thought: mediawiki.action.view.redirectToFragment.js does if ( window.location.hash === fragment ) { window.location.hash = fragment; } i.e., it sets it to the value it already has. Maybe the Firefox people decided not to do anything if location.hash is set, but the value doesn't change?
Only stuff vaguely related in upstream I could find is https://bugzilla.mozilla.org/show_bug.cgi?id=483304 and https://bugzilla.mozilla.org/show_bug.cgi?id=668213