-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Labels
Description
What version of React Router are you using?
6.0.2
Steps to Reproduce
- Prepare an application that uses react router v6.
- prepare a Route with a path of *.
{ path: "/", element: <Home /> }, { path: "*", element: <NotFound /> } - access the url with multiple slashes, such as https://example.com//a
Expected Behavior
This is also happening with Remix.
When accessing https://remix.run//a, the behavior is unintended.
Presumably, the component specified by * should be rendrering even if an unintended url string is given.
Actual Behavior
An error occurs.
I think it's because matchRoutes returns null.
melloware, LucaWishraiser, say8425 and marcellobarile