Navigating to local URL fragment doesn't modify browser history

Here’s an example of where this behavior is problematic:

https://meta.discourse.org/tos

If you’re tempted to click any of the TOC links and then return to your starting point via browser history, you can’t.

Why provide a TOC in the first place?

For those sites that would like to support the standard browser navigation, any suggestions?

I’m looking into monkeypatching the scroll-to-element behavior that I suspect is behind this but I’m starting with literally no knowledge of the codebase :slight_smile: I’ll get there eventually but if someone has some pointers, I appreciate the help!

לייק 1