Skip to content

Made the sameOrigin call work consistently in IE11.#512

Open
ForBalah wants to merge 1 commit intovisionmedia:masterfrom
ForBalah:fix-ie11-sameorigin
Open

Made the sameOrigin call work consistently in IE11.#512
ForBalah wants to merge 1 commit intovisionmedia:masterfrom
ForBalah:fix-ie11-sameorigin

Conversation

@ForBalah
Copy link
Copy Markdown

@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
Copy Markdown

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.

3 participants