Closed jhugman closed 6 years ago
@jhugman Thanks for adding this, please feel free to submit more rules! Please add a test case here:
https://github.com/mozilla/page-metadata-parser/blob/master/tests/metadataRules.test.js#L48
r+wc
Test added. Ready to merge.
/cc @jaredkerim
@jhugman Merged and retagged 1.1.1 and npm published
This PR adds a rule to the
url
ruleset to improve the retrieval of the correct canonical link.From our tests of AMP pages hosted on the
google.com
domain, therel
url provided by pages have often pointed to the AMP version of the page, but hosted on publications' own domain. This still are AMP page.The additional rule retrieves the desktop version of the page.
Link to Bug 1435308.