Invalid URL error when domain contains multiple slashes at the end #12722
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: dev
Related to `astro dev` CLI command (scope)
feat: routing
Related to Astro routing (scope)
needs response
Issue needs response from OP
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Astro throws 500 Internal Server Error with "Invalid URL" when main domain contains double or more slashes at the end. This happens in development server, production build, StackBlitz. This is not a browser issue. The problem occurs at server level and can be reproduced with curl.
What's the expected result?
Instead the server crashes with 500 error.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-726xsb6l-xoqxvvkc
Participation
The text was updated successfully, but these errors were encountered: