Update browser URL without navigating? (use-case: update after auto-save in editor) #10378
-
In my app I have an text editor which periodically automatically saves. On saving I want to update the URL in the beowser address bar (without causing a navigation, because the user shall still be able to edit after auto saving!), so the user can copy&paste the URL from the browser address bar to get back to the saved text, share it etc. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
If |
Beta Was this translation helpful? Give feedback.
Yeah,
window.history.pushState
is fine then.