Closed Bug 285622 Opened 20 years ago Closed 19 years ago

url hash (anchor) is no longer updated by links or javascript (location.hash) after manually changing it (in the location bar - copy and paste)

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 302575

People

(Reporter: CaptainN, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 (ax)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 (ax)

The text in the location field in Firefox (and Mozilla suite actually) stops
being updated if you manually change it (through messing with it, or through
copy and paste).

The javascript property location.hash is changed however, so it's just the
actual text in the location bar that is no longer updated.

Reproducible: Always

Steps to Reproduce:
1. Go to the test url (http://www.unfocus.com/browserBugs/Hash.html)
2. Click a bunch of links (1-6) and watch the url string update.
3. Manually change the hash portion of the url to any number between 1 and 6
(well any value will demonstrate the problem really.)
4. Click the links again, and see that the url is no longer changed.
5. Click the Alert link any time to see that the value changes in javascript,
even though it doesn't in the location bar.

Actual Results:  
Note that the value is not updated by going through the history either. It stays
stuck on whatever you put in manually.


I'm not sure, but this might be related to bug 149817.
Is anyone looking at this? Perhaps for 1.1? It seems like many other history
issues have been fixed, it would be nice to get it as close to 100% as possible,
for 1.1.

BTW, this is still broken in Deer Park Alpha 2.
OS: Windows XP → All
Hardware: PC → All
Dupping forward to bug with more info....

*** This bug has been marked as a duplicate of 302575 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
I can confirm this bug is still alive and well in Firefox 2.0.0.1 on OSX in 2007.

Specifically - Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1.

This is a big issue for AJAX apps which use the location hash for tracking history and bookmarking. If someone manually updates the URL, javascript can no longer update the location, ending all hope of bookmarking the current state of the app.
Component: History → Bookmarks & History
QA Contact: mozilla → bookmarks
You need to log in before you can comment on or make changes to this bug.