Hi!
Maybe i'm confused about how use this polyfill, but i'm not able to have the same behaviour in IE8 and lower than I have with native history api in Chrome, FF and Safari.
I'm on http://localhost:8080/
When called a controller method the url change to http://localhost:8080/Search?q=team
So, i want to call replaceState in order to revert url to http://localhost:8080/ again, and replace current state there without reloading
alert(History.getState().url);
History.replaceState(null, "", "/");
alert(History.getState().url);
The alerts show first
But the url keeps like http://localhost:8080/Search?q=team#./
How can i get the url like http://localhost:8080/ ? Thats the way that it works in FF, Safari and Chrome.
Thanks!!!
Hi!
Maybe i'm confused about how use this polyfill, but i'm not able to have the same behaviour in IE8 and lower than I have with native history api in Chrome, FF and Safari.
I'm on http://localhost:8080/
When called a controller method the url change to http://localhost:8080/Search?q=team
So, i want to call replaceState in order to revert url to http://localhost:8080/ again, and replace current state there without reloading
The alerts show first
And later
But the url keeps like http://localhost:8080/Search?q=team#./
How can i get the url like http://localhost:8080/ ? Thats the way that it works in FF, Safari and Chrome.
Thanks!!!