Gary Illyes from from the Google Search Relations group posted one other PSA on LinkedIn, this one says “do not use relative paths in your rel-canonical.” Gary desires you to make use of the complete, absolute URL, when it coms to rel-canonical.
Right here is his publish:
This isn’t new recommendation, Google mentioned this in 2018 and in 2013 – however that’s the reason it is a PSA from Google.
A lot so, John Mueller from Google additionally shared what Gary wrote on Twitter:
Canonicals and relative URLs, what’s up with that? Discover out extra at https://t.co/gJenmsuFv6 out of your pleasant neighborhood home elf.
— John Mueller is watching out for Google+ 🐀 (@JohnMu) January 30, 2023
John defined why, is the why shouldn’t be apparent to you, John said, “One of many issues is that it is relative to the place the content material was discovered. www or non-www? http or https? staging subdomain? staging area? random different area that is hosted by the identical firm? If you wish to choose one thing particular, it is good to be particular.”
Discussion board dialogue at on LinkedIn.