In single-page applications, the URL is technically always the same, because technically, we are always on the same page. We pretend to navigate between different pages, by using JavaScript to replace large sections of the DOM.
However, this would mean that we would lose the benefits of our application being URL-driven. Thankfully there are a couple of different techniques to enable routing to occur.