Closed huanent closed 4 weeks ago
No, there is no way to make it work like that at the moment. Actually, <Route nest>
internally creates a new Router with a special base
prop, so we can't really distinguish between nested routes and routers with base attribute. The ~
modifier only works with top-level paths.
I understand. Thank you for your answer.
Hi I have this route config
I would like jump to
/admin/home/projects
from/admin/account/login
, so I need usesetLocation('~/admin/home/projects')
Is there a way to keep base and break out of nest? likesetLocation('@/home/projects')
-->"/admin/home/projects"