Replies: 1 comment 1 reply
-
Remix, due to React Router, does relative navigation at the route level, not URL path. So when you go RR 6.4 introduced a new In the meantime, you will need to manually calculate the correct relative path. NOTE: If you have Anyway, just update your link to This will navigate from [1] https://reactrouter.com/en/main/components/link#relative |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is not necessarily an issue but just something that needs to be pointed out once. If you have a file structure like this (using the flat-routes convention):
$id.tags.add.index
$id.tags.add.manual
and
$id.tags.add.manual
looks somewhat like this:if you click on the link, it will actually go to
/tags
instead of/tags/add
. This is both unexpected and expected.Expected in the sense these two routes are separate from each other and don't share a
/tags/add
layout. Unexpected in the sense that you'd assume "going up" one path should result in the URL changing from/tags/add/manual
->/tags/add
.The solution is to just create a third route
/tags/add
that doesn't do anything else other than return<Outlet/>
:Beta Was this translation helpful? Give feedback.
All reactions