Repository navigation
Conversation
…e and canonical URL A locale's details page, /polyglots/teams/?locale=xx_YY, shared the title, canonical URL and og:url of the all-locales page, so search engines folded every team page into the overview. Add the locale's English name to the document title and keep the `locale` query arg in the canonical URL and og:url. Canonical URLs are lowercased site-wide (#4414), so the locale lookup now ignores case; otherwise the canonical would point at a 404. Fixes #4683. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@propsbot add jonoalderson |
Fixes https://meta.trac.wordpress.org/ticket/4683
A locale’s details page,
/polyglots/teams/?locale=xx_YY, has the same<title>, canonical URL andog:urlas the all-locales overview, so search engines treat every team page as a duplicate of/polyglots/teams/.This adds the locale’s English name to the document title (“Translation Teams | Indonesian | Translate WordPress”) and keeps the
localequery arg in the canonical URL and Jetpack’sog:url. Unknown locales anden_US, which already 404, are left alone.The wporg-seo plugin lowercases every canonical URL (https://meta.trac.wordpress.org/ticket/4414), which would turn the canonical into
?locale=id_id, and that currently 404s. So the lookup now ignores case:?locale=id_idshows the Indonesian page too. No twowp_localevalues differ only by case.The clean
/teams/<locale>/URLs the ticket mentions as a nice-to-have are not part of this.Testing
<title>reads “Translation Teams | Indonesian | Translate WordPress”.<link rel="canonical">ishttps://make.wordpress.org/polyglots/teams/?locale=id_id.og:urlishttps://make.wordpress.org/polyglots/teams/?locale=id_ID.og:urlare unchanged.?locale=xx_YY. Both still return a 404 with the unchanged title and canonical.🤖 Generated with Claude Code
Summary by CodeRabbit