-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[Bug]: Link to="//" no longer works #10005
Comments
#9994 might have an impact here? If not, it could be expanded to cover this case. |
Hm - either of the implementations is going to detect |
@brophdawg11 the goal was to ensure that the home URL ended with a '/' such as 'something.com/something/', but this is no longer necessary as it was only a temporary solution to a different issue. However, there may still be some people who are impacted by this change. |
What about changing the regex in #9994 to something like this:
With an additional dot at the end. This ensure that at least one character is needed after the protocol (in this case the path of the uri).
Are there protocols or use cases which can have an empty path in the uri? If yes, then this regex would not support it. |
Actually we can see this issue with '//' and '///' if we will try to visit https://remix.run// or In my app running locally I face different behaviour for '//' and '///' . ("react-router-dom": "^6.4.2",) For '//' (UI shows blank screen) : For '///' (UI shows fallback declared in RouterProvider): In browser: In deployed version for '//' I have the same behaviour as for '///'. |
Hm, we may be getting some wires crossed here. The I (maybe incorrectly) assumed this was a If there is a separate |
I'm going to close this out now that remix 1.13.0 is released with the linked fix for properly loading with a trailing double slash such as |
@brophdawg11 i've updated RR to [email protected]. Problem with // still exists. AFAIK RR and Remix now is the same. Should i wait for extra fix for RR, or it should be already fixed? |
@brophdawg11 Hello! Any news about that issue? |
React Router and Remix are mostly the same but not entirely. Remix has en entire compiler and server-adapter layer on top of React Router. This thread, based on the examples provided, is referring to a bug that existed in the Remix server-adapter code and was fixed in Remix 1.13.0. https://reactrouter.com has not been updated to Remix 1.13.0 so it still exhibits the issue. If there is an issue with |
What version of React Router are you using?
6.8.0
Steps to Reproduce
when linking to home using "//" to have the url ending with / no longer works with the newly minor version
Expected Behavior
redirect to the home page
Actual Behavior
Uncaught TypeError: Failed to construct 'URL': Invalid URL
The text was updated successfully, but these errors were encountered: