w3c / link-checker

Check links and anchors in Web pages or full Web sites.
https://validator.w3.org/checklink
121 stars 38 forks source link

Enhancement: implement an option to check canonical URLs #74

Open videochums opened 9 months ago

videochums commented 9 months ago

A link can result in a 200 response yet it has a different canonical URL.

It would be awesome if there was an option to check each linked page's http headers as well as the rel="canonical" element in its html head to ensure that the link URL is the same as the specified canonical URL and if it isn't, issue a warning.