T
TanStack7d ago
deep-jade

404 page not showing when navigate to a folder path with no index. Example attached.

1. spin up a basic router project. 2. Add the following folder structure to the routes/ folder:
settings/
- _layout.tsx (add whatever html in here)
-_layout.mypage.tsx
settings/
- _layout.tsx (add whatever html in here)
-_layout.mypage.tsx
3. run: npm run dev 4. navigate to /settings - 404 message does NOT show, but it should, right? as there is no defined (index.tsx)
1 Reply
deep-jade
deep-jadeOP7d ago
GitHub
404 component not shown at index of folder pathname when a layout c...
Which project does this relate to? Router Describe the bug If you have a folder e.g. "settings" and DO NOT define an index.tsx, but add a layout component and children, navigating to /set...

Did you find this page helpful?