Next.js Discord

Discord Forum

rel="no follow" in Link compontent

Answered
Broad-snouted Caiman posted this in #help-forum
Open in Discord
Broad-snouted CaimanOP
I am getting this message in SEMrush after page audit. Is this correct? does Next Link component has no follow by default?
Answered by Broad-snouted Caiman
Okay so probably SEMRush is false alarming me, thank you!
View full answer

13 Replies

@Broad-snouted Caiman I am getting this message in SEMrush after page audit. Is this correct? does Next Link component has no follow by default?
i can't reproduce:

import Link from "next/link";

export default function Page() {
  return <Link href="https://google.com">Hello world</Link>;
}

doesn't add the nofollow, and the [source code of next/link](https://github.com/vercel/next.js/blob/canary/packages/next/src/client/link.tsx) doesn't have any mentions of nofollow or any rel values
Broad-snouted CaimanOP
Okay so probably SEMRush is false alarming me, thank you!
Answer
can you give me the URL of the page? so i can inspect the actual <a> tags generated?
Broad-snouted CaimanOP
you can also simply right click => View page source and look at the <a> tags
if they have rel="nofollow", then SEMRush is right, else it's just false positive
Broad-snouted CaimanOP
They do not
that's an internal link. could you find an external link?
ok at least for the homepage, external links here don't have the nofollow tag, so you're all good
I think that service is just giving you false positives
Broad-snouted CaimanOP
It actually saying about internal links lol
@joulev I think that service is just giving you false positives
Broad-snouted CaimanOP
Yeah, that's what I thought, thanks you very much
yes i inspected your <a> on the homepage and they're all fine, none of them have the nofollow