-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redirect: Clean file URLs as well #11220
Comments
What do to mean by upstream here? Whom are them?
I'm not sure to follow this. How is |
If I understand correctly, the redirect doesn't work when there is no a trailing slash, right? |
Yes, that sums it up
Still, this could be solved on the RTD side as a temporary fix? Upstream issues: |
What's the problem this feature will solve?
Currently the clean URL redirects
/path/to/my_page/
to/path/to/my_page.html
, but it doesn't do that for/path/to/my_page
.Describe the solution you'd like
It would be good to have an equivalent that can to that redirect for the file paths as well (those that do not have any suffix).
Alternative solutions
Tried to write a redirect manually for
/*
to/:splat.html
, but that did not work, not to mention that it would fail for properly suffixed files.Probably this is an issue that can/should be solved upstream, but I am not sure what solution to suggest to them.
npx serve
seems to serve the static files just fine. Would there be any method to mimic that?The text was updated successfully, but these errors were encountered: