Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IE8 and lower keeps url before hash #339

Open
@FedeSeque

Description

@FedeSeque

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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions