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
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