TanStackT
TanStack2y ago
12 replies
naughty-peach

Route matching under multiple layout with file based is not under a parent route

Hello,

I have a quick question but I did not find the answer in the docs.

We are using file base routing with multiple layout that are nested, and routes likes
settings/general
settings/my-info
...

I have a /settings with a navigate that goes to setting/generalso the user does not fall on a 404 page when going to the /settings page, so you have the context.

Is it normal that general and info routes are not under a settings parent route in the debugger like that ?
_dashboard
  dashboard
    _dashboard/dashboard/_settings
      settings 
        general
        info

And is it normal that the settings route is not matched ?

If this is normal, how would you do a breadcrumb with this kind of situation ?

Thank you in advance for your answer
Capture_decran_2024-06-25_a_18.15.12.png
Capture_decran_2024-06-25_a_18.16.02.png
Was this page helpful?