Plugin that rewrites to root of each multi-page app #14771
Pyrolistical
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@poyoho offered a plugin that rewrites each multi-page apps to the root to allow for client side routing: #2958 (comment)
eg.
GET /nested/yada
returns the contents of/nested/index.html
.But that doesn't work for sub resources such as
GET /nested/index.css
as it would get rewritten to/nested/index.html
.Here is a plugin that avoids rewriting files with extensions. It also generalizes to a list of mpas.
I couldn't add this to the original issue, but at least this is searchable now.
Beta Was this translation helpful? Give feedback.
All reactions