-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Adding //
to the end of the root route throws an Internal Server Error
#4422
Comments
🤖 Hello there, We just published version Thanks! |
This is fixed in Remix 1.13.0 - we aren't doing any redirecting but instead are ensuring our adapters can correctly generate a URL with these trailing slashes. It would still be up to the app to detect and redirect in a loader (or eventually in middleware once that lands). |
@brophdawg11 I just filed an issue with the The linked issue is a regression, since it does not occur in 1.12.0. The commit fixing this issue looks likely to be the culprit; any chance you could double check? Thanks! |
I ran into similar issue. I'm trying to deploy the remix app to our company cloud service. it works locally, but not in cloud. what should I look at first? below is the error message
|
After some dig in, I found the issue the source code remix/packages/remix-express/server.ts Lines 96 to 98 in 2228ec3
|
What version of Remix are you using?
1.7.3
Steps to Reproduce
Spin up a new remix project from scratch. Just the basics. Remix Server. JavaScript.
Start the dev server and visit the browser at
localhost:3000//
.Also, for fun check out
https://remix.run//
Expected Behavior
I would expect this to not error. Ideally it would redirect back to the root route.
Actual Behavior
On production: An
Internal Server Error
is thrown that doesn't get caught by Error Boundaries.On development: An
Invalid URL
error is thrown that also doesn't get caught by Error Boundaries.The text was updated successfully, but these errors were encountered: