Open Bug 312708 Opened 19 years ago Updated 2 years ago

Javascript code in navigation does not refresh page if anchor is used in url

Categories

(Core :: DOM: Navigation, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: jeremy.crowell, Unassigned)

References

()

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

The navigation bar on the left side of the page listed uses the code
history.go(0)  when the arrows are clicked to show/hide the links below it. 
However, when you go to a page with an anchor in the URL, it will not refresh
(however, the command is still processed and a manual refresh will hide/show
that part of the navigation.)

Reproducible: Always

Steps to Reproduce:
1. Go to http://ai.volpe.dot.gov/CarrierResearchResults/Archives.asp?p=20#safestatA
2. Click on an arrow in the navigation bar on the left side of the page.
Actual Results:  
The page does nothing.

Expected Results:  
The page should refresh and hide that part of the navigation.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051016
Firefox/1.6a1 ID:2005101619

Occurs on trunk, too. I have a feeling this has something to do with the other
onclick handler in the link.
Version: unspecified → Trunk
This is a minimized testcase of the issue described. Click the first link, then
the second. The page should reload.
This just proves that history.go(0) works without an anchor.
Attachment #199892 - Attachment description: testcase without a anchor → testcase without an anchor
Well, the only difference between that page, and one of the pages from the other
area of that site is that it uses anchors.  I just wanted to point out that
anchors and the history.go link don't seem to work together.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: History → Bookmarks & History
QA Contact: history → bookmarks
Component: Bookmarks & History → Document Navigation
Product: Firefox → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: