Next.js Discord

Discord Forum

Page reloads on <Link> from one route group to the other

Unanswered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Open in Discord
Avatar
Schneider’s Smooth-fronted CaimanOP
Hi.
I am facing a strange issue in my Next.js application. The issue is with <Link> component. Generally, it works fine. I have divided my /app into two route groups, (auth) and (public). When I <Link> a page from one route group to the other, the page reloads.
Please help me resolve this issue.
Image

1 Reply

Avatar
Asian black bear
Those are two separate root layouts and thus it's by design to perform a full navigation.