How to fix the bug of reloading the page when you use history.pushState API?
Hi.
pushState writes into the address bar of the link and when I reload the page the browser is redirected to the non-existent link. How to avoid it, as to the moment when the browser started to reload the page to change the position in the browser history?
1 answer
but why change the url, if there is no handler for a new url?
changing something that people have been able to copy the link and then immediately get to where you need
("How to avoid it": I think that in any way)
Find more questions by tags JavaScriptFrontend