Next.js Discord

Discord Forum

Remove root layout for a specific path

Answered
Hunting wasp posted this in #help-forum
Open in Discord
Hunting waspOP
Basically the title.

I am creating a webapp using nextjs14 with app routing and at some point I need to open a component in a new window by itself, without the layout of the whole app (navbar basically).

So the idea was to create a new path, that contains his own layout and page, the things is that I have the navbar in the root layout and it's automatically applied to this new path, there is a way to remove this just for this page.tsx file?
Answered by Clown
You need to use route groups
View full answer

4 Replies