Closed adaboese closed 6 months ago
I have routes:
/_public/_layout.tsx /_public/$.tsx
I would expect that $.tsx here captures all 404 pages. However, $.tsx is not matched when it is nested under _public.
$.tsx
_public
Meanwhile, this does work:
/$.tsx
But that way I am missing the _public layout which I want to use for this page.
You need to include the + suffix on the _public folder. The + indicates nested folders; without the +, it is a colocated folder, and the $.tsx file is not treated as a route file.
+
ah, got it. Thank you!
I have routes:
I would expect that
$.tsx
here captures all 404 pages. However,$.tsx
is not matched when it is nested under_public
.Meanwhile, this does work:
But that way I am missing the
_public
layout which I want to use for this page.