Closed
Bug 1405103
Opened 8 years ago
Closed 8 years ago
en-CA has hreflang/301 mismatch
Categories
(www.mozilla.org :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hoosteeno, Assigned: pmac)
References
Details
Attachments
(1 file)
https://www.mozilla.org/en-CA/about/ 301 redirects to https://www.mozilla.org/en-GB/about/. But the about page has this hreflang tag in it:
<link rel="alternate" hreflang="en-CA" href="https://www.mozilla.org/en-US/about/" title="English (Canada)">
This issue appears anywhere we have an en-GB localization (e.g. the homepage, etc.).
The mismatch between 301 and hreflang is perplexing; it probably perplexes any automated tool that depends on these features to understand a website's topology -- e.g. a search engine.
Some potential fixes that :pmac and I discussed include...
* eliminating en-CA or
* ensuring that 301s and hreflang alternate tags always align
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → pmac
Status: NEW → ASSIGNED
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Commits pushed to master at https://github.com/mozilla/bedrock
https://github.com/mozilla/bedrock/commit/df016f2b18adff7f434917a6e7a5fe5d7932655f
Fix bug 1405103: Respect CANONICAL_URLS for unsupported URL locales
Before this change for pages that have an en-GB translation, other
non-supported english locales (e.g. en-CA) would redirect to
en-GB because it is first aphabetically. This should respect
CANONICAL_URLS since we say in the header tags that en-CA's
URL is the en-US variant.
https://github.com/mozilla/bedrock/commit/f733d2fd96dcd1134887bf013e262005256ac9cd
Merge pull request #5172 from pmac/fix-en-CA-to-en-GB-1405103
Fix bug 1405103: Respect CANONICAL_URLS for unsupported URL locales
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•