[BUG] Hash Toggle Navigation Creates Two History Entries in Browser

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!

Hi Seth,

Thanks for reaching out.
I followed the steps described here, but unfortunately, unable to recognize the issue you are facing. Can you please provide a screen-capturing video to help us with this?

Thanks

Hey team, I’ll send a link as a secure note attached to this reply. It’s a video recording of me talking through the issue. Let me know if there’s any more info you need.

Hey Seth,

We will forward this to our developers for further investigation.

Please bear with us. Thanks.

Hey team :slight_smile: Any updates on this one please? :pray:

This will be fixed in the next release. Have a great day.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.