Next.js Discord

Discord Forum

How to handle internal links using Next.js 14+ (App Router)?

Unanswered
African Slender-snouted Crocodil… posted this in #help-forum
Open in Discord
African Slender-snouted CrocodileOP
I have a CMS. In the CMS I have an article schema/type or whatever you want to call it.
In this schema I have a body field.
In this body field I can write HTML markup.
I want to be able to add links (anchor tags) in this markup.
In code I use <Link> from next/navigation.
How should I handle my internal links that I have in my CMS so that when a user clicks on a link the app does not do a full page refresh?

0 Replies