#not-found.js

1 messages · Page 1 of 1 (latest)

fickle knot
#

With the not-found.js (404 page) is it possible to not inherit from the layout.tsx because i dont want stuff like the navbar or footer on them pages that have the 404 error just something saying it could not be found.

light vaultBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

brazen bobcat
fickle knot
#

so like /src/app/home/main content

#

and put the not-found in /src/app/not-found.js

#

would that mean its domain/home/page when using it on a website?

covert quest
#

no he means simply group the routes under (home) dir, doesnt affect any of your routes on the website

#

I do have a similar issue, i do want the not-found in my app to inherit from the rootlayout, but it does not seem to work for me like that the nav and footer js tend to be out of place for my not-found page, any idea how can i work around that?

fickle knot
#

okay thanks ill check that out

covert quest
#

np!

fickle knot
#

but with your issue i dont have that problem, the navbar and footer just stay in the same place no matter what page im on.

covert quest
#

have you used specific css styling on them like fixing their position?

#

my footer just overlaps on top of my nav, with my not-found being rendering behind the two elements

fickle knot
#

yes