page.js
page.js copied to clipboard
fix: Use window.location.pathname if anchor pathname is empty (IE11)
IE11 will return an empty pathname for anchors where the href attribute contains a relative link consisting of only a query parameter (e.g. "?search=test"). This will not fix cases where the relative link contains a relative path (e.g. "foo/bar.html").