I want the page to reload on hitting the browser history back button. However, since the URL gets changed often using JavaScript's window.history.pushState
I do not want to reload the page every time the location
changes. On default the browser just changes the URL without reloading the page on hitting the back button.
(By this I would like to use the browser history back button as some kind of "undo" function.)