-
-
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.2.1
Steps to Reproduce
Case 1:
<Routes>
<Route path="/" element={<Layout />}>
<Route path="a" element={<Custom text="a" />}>
<Route path="b" element={<Custom text="b" />} />
<Route path="*" element={<Notfound />} />
</Route>
<Route path="*" element={<Notfound />} />
</Route>
</Routes>
Case 2:
<Routes>
<Route path="/" element={<Layout />}>
<Route path="a/*" element={<Custom text="a" />}>
<Route path="b" element={<Custom text="b" />} />
<Route path="*" element={<Notfound />} />
</Route>
<Route path="*" element={<Notfound />} />
</Route>
</Routes>
Expected Behavior
Case 1 === Case 2
Actual Behavior
Visit path /a it response:
Case 1:
Layout
a
Case 2:
Layout
a
NotFound
jstol, nick-avi-say, Tyler-Churchill, MrGlox, LucaWishraiser and 4 moreLucaWishraiser and skeptrunedev