Device-Bugs icon indicating copy to clipboard operation
Device-Bugs copied to clipboard

iOS <=6 Safari: When opening URL bar after manually changing hash and navigating to another hash, it shows the old hash value

Open tdcook opened this issue 12 years ago • 2 comments

Summary:

After manually changing a hash value and subsequently navigating to a new hash, iOS Safari continues to show the old hash value when the URL bar is opened. However, this is only observed when you actually open the URL bar. location.hash contains the correct value, and reloading the page without opening the URL bar takes you to the correct location. This has implications for jQuery Mobile when pushStateEnabled is set to false.

Platforms:

  • iOS 4.3.2
  • iOS 5.0
  • iOS 5.1
  • iOS 6.0

How to reproduce:

  1. Click on a hash link
  2. Manually change the hash link to something else
  3. Click on another hash link with a different value
  4. Open the URL bar
  5. Observe that the hash value is still what you manually entered earlier.

Reduced Example:

http://jsfiddle.net/kwvsp/4/show/

Bug Tracker ticket(s):

filed with Apple, but it does not appear that they make their bug tickets viewable by the public

Workarounds:

No known workaround.

tdcook avatar May 30 '12 06:05 tdcook

Still present in iOS 6.

tdcook avatar Oct 20 '12 23:10 tdcook

Fixed in iOS 7.

tdcook avatar Sep 18 '13 22:09 tdcook