Closed edankwan closed 6 years ago
Hmm... I wonder if there is a standard approach to push-state routing? Usually when I have used push-state and SPA server architecture, it has been to rewrite all routes to the home /index.html
. This is also how it seems that connect-pushstate
applies things.
Okay no problem. I am using the middleware
feature to do the sniffing and replace the request.url in my application to resolve it atm. Let me close this issue.
I am using static html files and set the base url to
/
. I have a html page at/foo/index.html
. If I navigate the urlhttp://localhost:9966/foo/
, it bounces back to the index.html at the root instead of the one infoo
. But if I use the full pathhttp://localhost:9966/foo/index.html
, it works just fine.