-
-
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
@ not working in route paths #2401
Comments
Seeing the same and should be related to #2354. My investigation in dev reveals the following: route with "@": page-object:
manifest-entry:
Note the missing entry in Without "@" in the path: page-object:
manifest-entry:
If I call "/users/%40bb", it matches the route as expected. |
It looks like the browser does not encode I can't figure out how to write a test that fails for |
Making it work correctly for |
Hmm, splitting first gets super tricky when it comes to spread routes. Perhaps we should revert #2354, but just require certain characters like |
Hmm. That doesn't work.
Maybe what we need to do instead is manually decode the characters that |
Describe the bug
Routes containing
@
appear to have been broken in@sveltejs/kit 1.0.0-next.163
and result in a 404 error. 162 is working as expected, 163-165 reproduce the issue.Reproduction
create file
src/routes/@test.svelte
with the following contents:run
npm run dev
browsing to this url
http://localhost:3000/@test
displays404 Not found: /@test
error page.changing
@sveltejs/kit
fromnext
to1.0.0-next.162
inpackage.json
, and then runningnpm i && npm run dev
results in the@test
page properly loading.Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
I am using a
src/routes/@[username]
path in my application for user profile pages, and they are all resulting in 404 errors now. I can technically work around the issue by refactoring my app to use a different user profile path, but I'd really like to avoid that if possible.The text was updated successfully, but these errors were encountered: