Closed diox closed 1 month ago
Add a
<meta name="robots" content="noindex, follow" />
when score is passed
We actually don't need to do that if a <link rel=canonical>
is set correctly (pointing to the page without any query string). If search engines do stumble upon the URL with the score being passed and the canonical link on that page points them to the URL without any query string, we should be OK.
I checked with https://addons-dev.allizom.org/fr/firefox/addon/ghosttext/reviews/, found:
rel="canonical"
with href="https://addons-dev.allizom.org/fr/firefox/addon/ghosttext/reviews/"
even when ?score
is passed
rel="nofollow"
for the links from the add-on detail page which filter reviews by score
I don't see <link rel=alternate>
for languages, I'm looking into html's head on reviews page.
It see them:
(...)
<link data-react-helmet="true" href="https://addons-dev.allizom.org/en-US/firefox/addon/ghosttext/reviews/" hrefLang="x-default" rel="alternate"/>
<link data-react-helmet="true" href="https://addons-dev.allizom.org/en-US/firefox/addon/ghosttext/reviews/" hrefLang="en" rel="alternate"/>
<link data-react-helmet="true" href="https://addons-dev.allizom.org/pt-PT/firefox/addon/ghosttext/reviews/" hrefLang="pt" rel="alternate"/>
(...)
I had https://addons-dev.allizom.org/en-US/firefox/addon/ghosttext/reviews/?utm_content=homepage-primary-hero&utm_medium=referral&utm_source=addons.mozilla.org because I navigated to the detail page from the primary hero suggestion, in this case I only saw the canonical link.
Once I removed ?utm_content=homepage-primary-hero&utm_medium=referral&utm_source=addons.mozilla.org
they show up.
Yeah, that's expected.
Description
Currently, our add-on user review pages:
?score
query parameter to filter the contents<link rel=canonical>
<meta name="robots" content="noindex, follow" />
only when a?review
is passed<link rel=alternate>
for other languagesWe should:
<link rel=canonical>
(ignore querystring: the "first" page with no querystring should be the canonical for now)<link rel=alternate>
for main languages like we do on other pagesAdd a<meta name="robots" content="noindex, follow" />
when score is passedrel=nofollow
to links on the add-on detail page filtering user reviews by scoreJust adding this in
src/amo/pages/AddonReviewList/index.js
should probably take care of the first 2 items:Acceptance Criteria
Checks
┆Issue is synchronized with this Jira Task