stacker.news icon indicating copy to clipboard operation
stacker.news copied to clipboard

Link Post: Use canonical URL when the URL is for AMP (Accelerated Mobile Pages)

Open cointastical opened this issue 3 years ago • 0 comments

The duplicate detection / prevention doesn't know about AMP (Accelerated Mobile Pages).

https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls#best-practices

Apparently the canonical URL can be obtained from the META tags from the response for an URL: https://ampforwp.com/tutorials/article/how-to-change-the-canonical-link-on-amp-pages/

So my suggestion is to use the canonical URL as the URL for a Link Post. And for dup prevention, obtain the canonical URL before checking for dups.

cointastical avatar Apr 19 '22 10:04 cointastical