kriasoft / universal-router

A simple middleware-style router for isomorphic JavaScript web apps
https://www.kriasoft.com/universal-router/
MIT License
1.7k stars 104 forks source link

Handle Page Reload #120

Open rbiggs opened 6 years ago

rbiggs commented 6 years ago

How do you handle page reload when using Universal Router on the client side? I'm not having any luck. If I use some routes, then reload the page, the server tries to load the non-existing route and fails. Is there any way for Universal Router to know about a page reload?

frenzzy commented 6 years ago

How your routes looks like? Do you update location correctly on client side? Do you use the same routes on server side?