Skip to content

Fix Schema.org metadata errors and incorrect policy framing in 14-language government propositions articles#720

Merged
pethers merged 2 commits intomain-08650f5f392c5e91from
copilot/sub-pr-714
Mar 2, 2026
Merged

Fix Schema.org metadata errors and incorrect policy framing in 14-language government propositions articles#720
pethers merged 2 commits intomain-08650f5f392c5e91from
copilot/sub-pr-714

Conversation

Copy link
Contributor

Copilot AI commented Mar 2, 2026

Six categories of structured data and content errors across all 14 language variants of the 2026-03-02 government propositions articles, identified in code review.

Metadata fixes (all 14 HTML files + rss.xml)

  • Image dimensions: publisher.logo was 600×60, article image was 1200×630 — both corrected to 140×140 to match the actual cia-icon-140.webp asset
  • HTML entities in JSON-LD: '' in alternativeHeadline and description fields; JSON parsers don't decode HTML entities
  • articleBody HTML markup: field contained HTML-encoded tags (<h2> etc.) — replaced with language-appropriate plain text per Schema.org spec
  • RSS <description>: same &#039; → literal apostrophe fix

Content corrections (all 14 HTML files)

  • Prop. 2025/26:123 (explosives control): "Why It Matters" incorrectly framed as trade and industry policy → corrected to defence and internal security policy (proposal was referred to Defence Committee FöU)
  • Prop. 2025/26:127 (practice driving deregulation): "Why It Matters" incorrectly framed as education policy → corrected to transport and road safety policy (referred to Transport Committee TU)

All corrections applied in all 14 languages (EN, SV, DA, NO, FI, DE, FR, ES, NL, AR, HE, JA, KO, ZH).


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

…g articles and rss.xml

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add government propositions articles for 2026-03-02 Fix Schema.org metadata errors and incorrect policy framing in 14-language government propositions articles Mar 2, 2026
@pethers pethers marked this pull request as ready for review March 2, 2026 07:55
@pethers pethers merged commit 49e53c2 into main-08650f5f392c5e91 Mar 2, 2026
@pethers pethers deleted the copilot/sub-pr-714 branch March 2, 2026 07:55
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