erikringsmuth / app-router

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

PushState Refresh or external link #110

Closed mrnine closed 9 years ago

mrnine commented 9 years ago

Hi,

Been setting up my polymer app with app-router. Things are looking good except for when i refresh a path that does not really exist. I run into an 404 for obvious reasons. But there must be a way to fix this is as I have not been able to find examples.

From my index.html:

 <a is="pushstate-anchor" href="/start"></a>
 <app-router mode="pushstate">
 <app-route path="/start" element="my-start"></app-route>
 </app-router>

www.mydomain.com/start opens fine from the internal link. But refreshing it or pasting the link directly will result in a 404. Any good tricks to solve this?

My index.html is also vulcanized if that may present an issue.

mrnine commented 9 years ago

Solved in .htaccess