-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Labels
bugSomething isn't workingSomething isn't workinglow hanging fruitpkg:adapter-nodeready to implementplease submit PRs for these issues!please submit PRs for these issues!
Milestone
Description
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
System:
OS: Windows 10 10.0.22621
CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
Memory: 38.98 GB / 63.93 GB
Binaries:
Node: 18.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.19.3 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22621.1105.0), Chromium (109.0.1518.69)
Internet Explorer: 11.0.22621.1
npmPackages:
@sveltejs/adapter-auto: ^1.0.2 => 1.0.2
@sveltejs/adapter-node: ^1.1.4 => 1.1.4
@sveltejs/kit: ^1.0.0 => 1.3.1
svelte: ^3.54.0 => 3.55.1
vite: ^4.0.0 => 4.0.4
Severity
annoyance
Additional Information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglow hanging fruitpkg:adapter-nodeready to implementplease submit PRs for these issues!please submit PRs for these issues!