mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.18k stars 919 forks source link

Ensure we only use x-default on appropriate pages #15526

Closed stevejalim closed 1 day ago

stevejalim commented 2 days ago

One-line summary

This changeset reduces the number of pages containing a link with hreflang of x-default. This change will improve/reduce harm to our SEO

Significant changes and points to review

You can test-drive this code on https://www-demo8.allizom.org/ - though note that all canonical urls there will refer to www.mozilla.org not www-demo8.allizom.org

To check/confirm:

Issue / Bugzilla link

Resolves #15464

stevejalim commented 2 days ago

@a-kyne this is ready to test - please see the description above

codecov[bot] commented 2 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.82%. Comparing base (02db980) to head (5c4802a). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #15526 +/- ## ========================================== + Coverage 78.78% 78.82% +0.03% ========================================== Files 157 158 +1 Lines 8257 8282 +25 ========================================== + Hits 6505 6528 +23 - Misses 1752 1754 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: