metafizzy / infinite-scroll

📜 Automatically add next page
https://infinite-scroll.com
7.41k stars 1.74k forks source link

IE11: cannot set history with different origin #908

Open DenisDolgov opened 4 years ago

DenisDolgov commented 4 years ago

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 commented 3 years ago

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