2

If I go to https://askubuntu.com/faq and click on this FAQ, it doesn't take me to another section of the page.

3
  • It works for me. What browser are you using?
    – N.N.
    Commented Dec 15, 2011 at 7:32
  • Firefox 8.0 on Windows XP. Commented Dec 15, 2011 at 7:47
  • Does anchor links on other pages work for you?
    – N.N.
    Commented Dec 15, 2011 at 7:54

2 Answers 2

3

This behavior depends on the browser, but it was broken in some cases (fixed in the next build).

We do something insanely hacky here because of how different browsers behave: WE CHANGE YOUR LINKS! We do this because we want the FAQ to be as accessible as possible and highlight exactly what was linked to (by copying it up top and giving it an eye-catching fade).


Details:
To get this effect but not have your browser jump immediately to the #id element in the page (from the URL hash) we actually change the IDs on all the sections from #id to #link-id (this is explicitly to prevent the jumping).

Now that we've broken everything, JavaScript compensates and our click handlers undo that link--ification. That wasn't happening in the full URL (href="http://askubuntu.com/faq#etiquette") case like askubuntu has, it was only happening in hash (href="#etiquette") case, this is fixed for the next build.

0

I can't reproduce this in Firefox at all. I can click on the Etiquette section and it takes me that section of the page in the faq.

3
  • I tried it on Safari at home, and it didn't work. vimeo.com/35452993 ought to show the bug when the video's converted in half an hour's time. Commented Jan 22, 2012 at 11:05
  • @AndrewGrimm - thanks for the video, that helped narrow it down quickly. This bug depends on the browser (and event order), but should be fixed for everyone in the next build. Commented Jan 22, 2012 at 12:42
  • I've now deleted the video. Commented Jan 28, 2012 at 22:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .