Next.js Discord

Discord Forum

Page reloads while changing route group in nextjs app router...

Answered
Barbet posted this in #help-forum
Open in Discord
BarbetOP
In my project, i can visit all routes of user route group without any reload. But when I want to visit any route of admin route group, page reloads and then it goes to dashboard page. I need solution of this. I dont want to reload the page while navigating from one route group to other. how to do that ?
Answered by B33fb0n3
navigation between root layouts requires a full page reload. so the solution to this is to create only one root layout
View full answer

5 Replies

navigation between root layouts requires a full page reload. so the solution to this is to create only one root layout
Answer
(rootlayout) --->
|
(admin) ---->
(product) ---->
(docs) ---->
so on
@Barbet if that helped you, please mark an answer as solution, like mentioned here: https://nextjs-forum.com/post/1165925111933714512#message-1165925117654737006
That’s the correct answer so I took the liberty to mark answer at will. OP if you have questions or want to change the answer you can simply mark an answer again