So, if the current url is url.com/x/y if I do history.pushState({“z”:”z”}, “” , “z”), the url will be url.com/x/z How to make it url.com/z ?? Answer I figured it out. It can be done by retyping the entire url path
Tag: pushstate
How to get notified about changes of the history via history.pushState?
So now that HTML5 introduces history.pushState to change the browsers history, websites start using this in combination with Ajax instead of changing the fragment identifier of the URL. Sadly that means that those calls cannot be detect anymore by onhashchange. My question is: Is there a reliable way (hack? ;)) to detect when a website uses history.pushState? The specification does