For my ZeroNet(Werkzeug)-based project I'll use Angular2 routing instead of CoffeeScript, for example http://127.0.0.1:5000/detail/11 but I'll see this error:
Not Found
The requested URL was not found on the server.
If you entered the URL manually please check your spelling and try again.
This is the lite-server description of this feature:
When creating a SPA there are routes that are only known to the browser. For example, /customer/21 may be a client side route for an Angular app. If this route is entered manually or linked to directly as the entry point of the Angular app (aka a deep link) the static server will receive the request, because Angular is not loaded yet. The server will not find a match for the route and thus return a 404. The desired behavior in this case is to return the index.html (or whatever starting page of the app we have defined).
For my ZeroNet(Werkzeug)-based project I'll use Angular2 routing instead of CoffeeScript, for example http://127.0.0.1:5000/detail/11 but I'll see this error:
This is the lite-server description of this feature:
Original request here: https://github.com/pallets/werkzeug/issues/1016