T
TanStack3mo ago
wise-white

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)
5 Replies
wise-white
wise-whiteOP3mo 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...
absent-sapphire
absent-sapphire2mo ago
@Manuel Schiller
foreign-sapphire
foreign-sapphire2mo ago
why tag me? I am aware of GitHub issues
absent-sapphire
absent-sapphire2mo ago
Sorry, but is this actually the expected behavior of the router, or is it really an issue ?
foreign-sapphire
foreign-sapphire2mo ago
it's a bug most likely

Did you find this page helpful?