T
TanStack2mo ago
national-gold

Show 404 when navigating to a route without index.tsx

Since the route /ag has only a layout without an index.tsx, accessing it should throw a 404, but instead I'm able to access it and it just shows a blank page. Is this intended behaviour and how do I fix it?
No description
2 Replies
mute-gold
mute-gold2mo ago
right now thats a limitation, as a workaround you could add an index and throw a notFound in it
national-gold
national-goldOP2mo ago
Thanks

Did you find this page helpful?