Nested not found pages #53486
Replies: 4 comments 1 reply
-
If I'm not mistaken, rendering local not-found.tsx pages was possible until ver. 13.4.9 #48227. I had to rollback from ver. 13.4.12 to 13.4.9 because of this. |
Beta Was this translation helpful? Give feedback.
-
It should be possible to define |
Beta Was this translation helpful? Give feedback.
-
+1 |
Beta Was this translation helpful? Give feedback.
-
+1 The example in the docs for i18n shows the root layout file nested within a [lang] directory. I would expect to also be able to have a not-found file at the same place. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Background
This complicates the life of applications that uses localization. And it differs from the error boundary behavior, making this look like a bug. And it seems counter intuitive to trigger them only on manual calls.
When there are several people complaining that this looks like a bug, I really think this should be look into.
Proposal
When there are sub not-found files in the app router directories, fallback to them instead of root one. This allows to fit them in layouts/templates/etc, enabling the full power of app router.
Beta Was this translation helpful? Give feedback.
All reactions