Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE11: cannot set history with different origin #908

Open
DenisDolgov opened this issue Feb 28, 2020 · 1 comment
Open

IE11: cannot set history with different origin #908

DenisDolgov opened this issue Feb 28, 2020 · 1 comment

Comments

@DenisDolgov
Copy link

in ie 11 the line 47 history.js incorrectly fulfills:
var linkOrigin = link.origin || link.protocol + '//' + link.host;
The fact is that link.host also includes a protocol and it turns out that
"https://hostname.com" !== "https://hostname.com:80"
To fix, you can write something like this:
var linkOrigin = link.origin || (link.protocol + '//' + link.host).replace(':' + link.port, '');

@desandro
Copy link
Member

desandro commented Dec 6, 2020

Thanks for reporting this issue. I'll keep this open for other's visibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants