erikringsmuth / app-router

Router for Web Components
https://erikringsmuth.github.io/app-router/
MIT License
610 stars 83 forks source link

404 on Safari #38

Closed sjama closed 9 years ago

sjama commented 9 years ago

Not sure if the cause of this is that router itself or just they way the demos are implemented but the examples do not work in safari.

I just get a 404 weather I click the links or input a url directly. However your example here work perfectly in safari.

erikringsmuth commented 9 years ago

Ah yes. I broke this when I switched from platform.js to webcomponents.js. They (Polymer) removed the URL() constructor from the polyfill https://github.com/webcomponents/webcomponentsjs/issues/53 which broke my code in older browsers. I updated app-router to work in IE, but apparently that broke Safari. Turns out the <a> tag has different APIs in IE than all other browsers. :tired_face: It's all cleaned up now and the IE patch doesn't break other browsers. I updated the examples too. The changes are in v2.0.4. :+1: