astro-paper
astro-paper copied to clipboard
Incorrect use of "canonical meta tag"
in /src/layouts/Layout.astro line 48 <meta property="og:url" content={canonicalURL} />
this will add the same canonical tag to every page
The use of the "rel=canonical" link element is specifically intended for specifying a preferred canonical URL for duplicate or similar pages. It is not necessary for pages that do not have duplicate content or similar versions.
It's important to use the "rel=canonical" link annotation judiciously and only when it's necessary. Adding the canonical tag to every page, even when it's not needed, can lead to confusion and incorrect signals to search engines, potentially affecting your website's search rankings.
Thank you for bringing up this concern about the use of "canonical URL". If you have any further suggestions or concerns, please feel free to share them.
Also, if you want to make a PR for this issue, let me know. If not, I'll make the necessary adjustments accordingly.
As per RFC 6596:
The target (canonical) IRI MAY: ... Be self-referential (context IRI identical to target IRI).
So, using "rel=canonical" is not a problem on every page