Skip to content

fix: address review feedback — CSP, hreflang, Swedish localization#1113

Merged
pethers merged 2 commits intomain-62a4e8d6e78c93d5from
copilot/sub-pr-1103
Mar 13, 2026
Merged

fix: address review feedback — CSP, hreflang, Swedish localization#1113
pethers merged 2 commits intomain-62a4e8d6e78c93d5from
copilot/sub-pr-1103

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

Fixes issues from PR #1103 review: CSP blocking JSON-LD, broken hreflang links to non-existent pages, and un-localized reading time string in the Swedish article.

Changes

  • CSP: Added 'unsafe-inline' to script-src to allow inline JSON-LD <script type="application/ld+json"> blocks — matches existing pattern across all other news pages
  • hreflang / language switcher: Stripped 12 non-existent language variants (da, no, fi, de, fr, es, nl, ar, he, ja, ko, zh) from both <link rel="alternate"> tags and the nav switcher — only EN + SV + x-default remain
  • Swedish localization: "3 min read""3 min läsning" in both twitter:data1 meta and visible article meta span

HTMLHint: 0 errors on both files.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add 2026-03-13 committee-reports articles (EN, SV) fix: address review feedback — CSP, hreflang, Swedish localization Mar 13, 2026
Copilot AI requested a review from pethers March 13, 2026 06:55
@pethers pethers marked this pull request as ready for review March 13, 2026 07:14
@pethers pethers merged commit 50556a2 into main-62a4e8d6e78c93d5 Mar 13, 2026
@pethers pethers deleted the copilot/sub-pr-1103 branch March 13, 2026 07:14
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