Next.js Discord

Discord Forum

Not found (404) page is not using root layout when opening page directly.

Answered
Eastern yellowjacket posted this in #help-forum
Open in Discord
Eastern yellowjacketOP
Hi everyone, My custom not-found page is working fine when I navigate to it using Link, but when I load it directly using Url, it only shows content from the not-found.js file without wrapping it in content from the Layout file. I am using NextJS v13.4.13 App Router.
Answered by riský
can you update to the latest nextjs version v13.4.19
View full answer

3 Replies

can you update to the latest nextjs version v13.4.19
Answer
im sure it has been fixed in those versions
@riský can you update to the latest nextjs version `v13.4.19`
Eastern yellowjacketOP
Thanks, It worked. I thought I was using the latest version, but for some reason, NPM was not installing the latest NextJS without specifying the version.