Next.js Discord

Discord Forum

duplciated header tags

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Avatar
Brown bearOP
Hello, I do have a problem, i used generateMetadata to create html head tags. But i found that the same data are in some sort of JS thing in html ( which make the headers looks duplicated for crawlers ) . Any solutions ?

8 Replies

Avatar
Brown bearOP
The problem is in this.
Image
Avatar
Brown bearOP
Guys it's urgent, i need to deploy this asap without duplicates.
Avatar
Curious, why is the data being in the <script> tag matters?
Avatar
Brown bearOP
seo website detects it as duplicate tags
Avatar
Brown bearOP
any help please ?
Avatar
@Brown bear seo website detects it as duplicate tags
Avatar
duplicated tags? well unless you have the same script tags (with the same data inside it) in your html, it should be perfectly fine to have a script tag
which SEO tool do you use? I feel like you can ignore it
Avatar
@Brown bear The problem is in this.
Avatar
and data being passed down to the script tag is how Next.js works behind, so no way to opt-out it