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

NEW
Unassigned

Status

()

Core
Document Navigation
13 years ago
4 years ago

People

(Reporter: Jeremy, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

13 years ago
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.

Comment 1

13 years ago
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

Comment 2

13 years ago
Created attachment 199891 [details]
testcase with an anchor

This is a minimized testcase of the issue described. Click the first link, then
the second. The page should reload.

Comment 3

13 years ago
Created attachment 199892 [details]
testcase without an anchor

This just proves that history.go(0) works without an anchor.

Updated

13 years ago
Attachment #199892 - Attachment description: testcase without a anchor → testcase without an anchor
(Reporter)

Comment 4

13 years ago
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

Updated

10 years ago
Component: History → Bookmarks & History
QA Contact: history → bookmarks

Updated

4 years ago
Component: Bookmarks & History → Document Navigation
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.