Closed infusion closed 2 years ago
This sounds like #2532, and should have been fixed some time ago. What version of SvelteKit are you on?
Thanks, I searched for the problem on the issues but couldn't find #2532, thanks. Seems the built did not upgrade the kit, it still runs on 1.0.0-next.303.
Describe the bug
Hello,
we had a strange problem occurring in production where svelte-kit crashes when calling the site with https://foo.com//. The problem is, that the JavaScript URL class can't handle a single double slash string, such es
Probably this syntax expects a string after the slashes, as it is the start of a schemaless URL, such as
//foo.com/bla
.Surprisingly the crash does not occur on my local Macbook with the project being run using
npm run dev
. Here a redirect happens, which is also the expected behavior.Thanks
Reproduction
In the built version of the project, go to the site https://foo.com// with double slashes at the end.
Logs
System Info
Severity
serious, but I can work around it
Additional Information
No response