Skip to content

Comments

Fix localized nav links, article type classification, and JSON-LD entity encoding in immigration reform articles#375

Merged
pethers merged 2 commits intomain-2f13dfa4453c0f8dfrom
copilot/sub-pr-369
Feb 20, 2026
Merged

Fix localized nav links, article type classification, and JSON-LD entity encoding in immigration reform articles#375
pethers merged 2 commits intomain-2f13dfa4453c0f8dfrom
copilot/sub-pr-369

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

Three structural bugs in the immigration reform breaking-news article package across multiple language variants.

Back-to-news navigation links

7 localized articles (ja, ko, fr, zh, nl, es, de) linked back to index.html (English) instead of their language-specific index. Fixed to index_{lang}.html.

Article type misclassification

Immigration-reform entries in index_ja.html, index_da.html, index_ar.html, index_sv.html were tagged "type": "prospective" — incorrect for a breaking-news article, causing wrong UI filtering/grouping.

- "type": "prospective",
+ "type": "breaking",
  "slug": "2026-02-20-immigration-reform-reports-sv.html",

JSON-LD double-escaped HTML entities

Week Ahead entries in index_fr.html and index_es.html contained &amp;#233;-style double-escaped entities inside <script type="application/ld+json">, which browsers do not HTML-decode inside script tags — resulting in garbled structured data consumed verbatim by crawlers.

- "headline": "Le Parlement su&amp;#233;dois face &amp;#224; une semaine charg&amp;#233;e: ...",
+ "headline": "Le Parlement suédois face à une semaine chargée: ...",

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Update immigration reform reports for Sweden's Riksdag Fix localized nav links, article type classification, and JSON-LD entity encoding in immigration reform articles Feb 20, 2026
Copilot AI requested a review from pethers February 20, 2026 17:50
@pethers pethers marked this pull request as ready for review February 20, 2026 17:51
@pethers pethers merged commit 9a03287 into main-2f13dfa4453c0f8d Feb 20, 2026
@pethers pethers deleted the copilot/sub-pr-369 branch February 20, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants