visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

Fix IE11 breakage with URL building for same-origin comparison #533

Closed blowery closed 5 years ago

blowery commented 5 years ago

Page navigation in IE11 always fails the same-origin check on domains that lack ports. This is because the fallback for toURL that uses an anchor fills in the port even when it's not explicitly part of the link.

This patches it back to a blank string, which matches modern behavior.

Fixes #472

blowery commented 5 years ago

Closing because I like #512 better. :)