page.js
page.js copied to clipboard
el.pathname not returning leading '/' in IE 10 & 11
We're passing a '/' in as the base. In our element we have a href similar to test/123. In Chrome and Firefox el.pathname returns /test/123. However, in IE it is returning test/123.
So in IE when the Context is being created it removes the middle '/'. e.g. test/123 becomes test123.
I'm going to start working on a pull request now.
Managed to find a work around instead. We don't set page.base when we're using IE and then it acts as we expect.