Hey team, Hoping you can help today.
I have an issue where double hash entries are being added to the browser history when navigating to an off-canvas via a toggle hash. You can repeat it yourself by:
- Setup an Off-Canvas element
- Set the toggle hash for it e.g. “custom-toggle”
- Add a button element elsewhere on the page, and set the URL to the hash - e.g. “#custom-toggle”
- Click the button element
- See TWO hash navigations in the history
This is frustrating as I’d like a user to be able to press “Back” and have the off-canvas close. I have the JS working for that, however, a user currently has to press back TWICE for it to work due to there being double hash navigation in the history.
Are you able to help get this looked at please? Thanks!