Bug 1011275

Summary: Anchor links in DocBuilder URL don't work the first time a page is opened in Firefox
Product: [Community] PressGang CCMS Reporter: Matthew Casperson <mcaspers>
Component: Web-UIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.1CC: cbredesen, lnewson, misty
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-02 02:43:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1013825    

Description Matthew Casperson 2013-09-24 01:26:42 UTC
Open the link http://docbuilder.usersys.redhat.com/13968/#About_This_Guide in Firefox (tested on Firefox 17 and 24), and the first time the browser will not stay at the top of the page. The second time the link is entered, the browser will scroll down to the correct position.

Chrome works OK.

Comment 1 Matthew Casperson 2013-09-24 01:27:22 UTC
This seems to happen with all anchors in DocBuilder pages.

Comment 2 Matthew Casperson 2013-09-24 01:33:33 UTC
Building the book with Publican and jumping to anchors works OK.

Comment 3 Misty Stanley-Jones 2013-09-26 01:58:01 UTC
I feel silly because I've noticed this for quite some time but thought "It must just be me"

Comment 4 Matthew Casperson 2013-10-02 01:54:50 UTC
Including jquery (even without any other scripts) causes this.

Comment 5 Matthew Casperson 2013-10-02 02:43:18 UTC
I'm not exactly sure what is causing this, but moving the jQuery script to the end of the HTML page instead of in the head fixes the issue.

There is no real downside to having the page load before the scripts (and all the scripts run after the DOM is ready anyway).

Any newly built specs will have the change enabled, and all books will pick it up with the next full rebuild.