avoid route nesting not working as expected
i've a file based routing defined as such:
but tabs still show (see screenshot)
is that a bug or expected behavior? how to land a solution for this which does not involve route matching?

2 Replies
rival-black•3mo ago
it does not matter if you dont have the file in the folder, it will nest if the parent manages the segment before the current route.
you'd instead need a pathless route to make it work the way you intend
you could alternatively try the
_ suffix to prevent a route from being nested under it's parent
As a rule of thumb, folders are just a convenient way to organize routes, if a route is in a folder or isnt will not change it's behavior
it's rather useful to avoid having very long filenames, e.g..
but functionally they work the sameinland-turquoiseOP•2mo ago
actually this
_ suffix didn't work
but wrapping in a subfolder with () did
in case somebody interested