-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Issue with trailingSlash
and prerendered routes
#8755
Comments
It looks like you mean The expected behaviour is that |
@Rich-Harris Sorry for the confusion (should post screenshots from
|
Should the trailing slash redirect logic be moved from the adapters to instead be part of |
It is part of |
Describe the bug
I have a website with prerendered pages running via
adapter-node
. The problem is that users sometimes use trailing slash in URLs. In this case, the loaded page looks like it has no css loaded, but with the correct content. I would expect a redirect to the URL without a trailing slash.What is the expected behavior in this case?
https://sveltekit-trailing-slash.vercel.app/test
https://sveltekit-trailing-slash.vercel.app/test/
Reproduction
Demo: https://sveltekit-trailing-slash.vercel.app/
Repository: https://github.com/yellowby/sveltekit-trailing-slash
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: