Does iPhone hash navigation work well?
There is a page http://example.com/somepage , on this page there is an element with <a href='#someIdOnPage'>. When a user clicks on this element, the page scrolls to the element having this identifier in the DOM, and the browser URL is updated to http://example.com/somepage#someIdOnPage .
This works fine in Android browsers, but it breaks on Apple Safari. When I click on this element, it does not scroll to the id element. But when I load the URL http://example.com/somepage#someIdOnPage directly, it scrolls correctly to the corresponding element.
Did I miss something?
source
share