replaceState()
will change the URL in the browser (ie. pressing the back button won’t take you back)
pushState()
will change the URL, and keep the old one in the browser history (ie. pressing the back button will take you back)
replaceState()
will change the URL in the browser (ie. pressing the back button won’t take you back)
pushState()
will change the URL, and keep the old one in the browser history (ie. pressing the back button will take you back)