SEO: Double canonical tags an meta tags in header
larsroettig opened this issue · comments
Lars Roettig commented
Christian Kozalla commented
I used leerob.io repo to implement SEO with next-seo on my site (repo: https://github.com/christiankozalla/nextjs-blog)
I noticed the double canonical tags recently due to your issue ;) thanks!
I fixed the double canonical tags by removing <DefaultSeo />
from _app.js
because I think default styles are not overriden by other pages' SEO, or at least I don't know how.
In next-seo
package I found some related issues:
garmeeh/next-seo#610
garmeeh/next-seo#544
So I worked around this by simply using no default SEO, but custom SEO on a per-page-basis`
Lee Robinson commented
Nice! Thank you 🙏