This is will be a very quick and brief post about messing with window.history.pushState compared to window.history.replaceState. Both functions have their use case and I want to share a quick reason why you should use one compared to the other and why it matters. Quick Explanation As you navigate a website, URL and history management is handled for you but sometimes you may want to update the history stack manually. As stated directly from its source on mdn web docs, window.history.pushState ...