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

Made the sameOrigin call work consistently in IE11. #512

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ForBalah
Copy link

@ForBalah ForBalah commented Oct 4, 2018

I found that in Internet Explorer 11 (this is for a corporate client still on Windows 7), when the host name does not include the port number, (e.g. http://internal.test.com/), then the anchor tag returned by _toURL() call had a different port number ("80") to the port number from window.location (""). As such, the sameOrigin() call was returning false, resulting in routing not being captured.

This was occurring in both http and https sites that did not explicitly include the port number in the url.

I tested this fix in Chrome and Firefox on Windows and it still works there.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 93.277% when pulling afbec83 on ForBalah:fix-ie11-sameorigin into 02c026c on visionmedia:master.

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

Successfully merging this pull request may close these issues.

None yet

3 participants