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?
2 Replies
mute-gold•2mo ago
right now thats a limitation, as a workaround you could add an index and throw a notFound in it
national-goldOP•2mo ago
Thanks