Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Working with route pushstate

$
0
0
Using pushState doesn't mean that you can arbitrarily change the URL in the address bar and have it prevent server hits.  You are limited to using the back/forward buttons and JS hooks, and doing window.history.pushState() or window.history.replaceState()

Try loading the page, opening the console, and entering window.location.pushState({}, "title", "/en");

Viewing all articles
Browse latest Browse all 3491

Trending Articles