Closed
Bug 1442327
Opened 7 years ago
Closed 7 years ago
Remove hreflang in canonical tag
Categories
(www.mozilla.org :: Pages & Content, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: raue, Assigned: agibson)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
We should remove the hreflang attribut in our canonical tag on all pages and locales.
Our canonical is:
<link rel="canonical" hreflang="en" href="https://www.mozilla.org/en-US/firefox/new/">
It should be:
<link rel="canonical" href="https://www.mozilla.org/en-US/firefox/new/">
This could confuse the crawler and is not necessary. The necessary self hreflang link is included and with this setup there could be confusions as the locale is twice in teh setup. It’s even likely, that because of this Google doesn’t understand our canonicals at all.
If it's just cleanly removing these, here, I might be up for this: https://github.com/mozilla/bedrock/search?utf8=%E2%9C%93&q=hreflang&type=Code
Assignee | ||
Comment 2•7 years ago
|
||
(In reply to Stephen Donner [:stephend] from comment #1)
> If it's just cleanly removing these, here, I might be up for this:
> https://github.com/mozilla/bedrock/search?utf8=%E2%9C%93&q=hreflang&type=Code
Thanks for the offer, Stephen! In this case, we have a bunch of SEO bugs we want to plough through quickly, so I'm going to take this. Next time if you see something you want to fix, please feel free just to grab it and submit a PR!
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → agibson
Status: NEW → ASSIGNED
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/bedrock
https://github.com/mozilla/bedrock/commit/07cab9be87d182810d132716e0569d9e5a6b7bd6
[fix bug 1442327] Remove hreflang in canonical tag
Updated•7 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/bedrock
https://github.com/mozilla/bedrock/commit/ab30d4060b1f159bdb888ece972865cf9b609010
[bug 1442327] Update hreflang headless tests
You need to log in
before you can comment on or make changes to this bug.
Description
•