mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 06:35:10 +00:00
Because the TOC links use `@click.prevent` to drive smooth-scroll manually, the browser's native hash update was suppressed and users couldn't copy the URL after clicking a TOC entry to share a deep link. `scrollToSection` now calls `history.replaceState` to sync the hash without polluting back/forward history. Adds an e2e regression test that asserts `window.location.hash` is updated to the matching section anchor after a TOC click.