choojs / choo

:steam_locomotive::train: - sturdy 4kb frontend framework
https://choo.io/
MIT License
6.78k stars 595 forks source link

What are the precise set of rewrite rules so that if a user specifies app.mount(<PATH>, component) they can retrieve that in the URL? #713

Closed rook2pawn closed 2 years ago

rook2pawn commented 2 years ago

I am working on a fork of http-server

e.g.

start with

app.mount('/user/create', createView)

and then I want to know the rewrite rules such that

/user/create -> /#user/create (for example)

https://github.com/choojs/choo/issues/676#issuecomment-408439648

@YerkoPalma : "This is expected. Any route request are handled by the server choo, as a front end framework, can't do anything about that. What you need to do is redirect any static route to the route where your choo app lives.