Skip to content

fix: hreflang="nb" and x-default for 2026-02-27 evening analysis#649

Merged
pethers merged 2 commits intomain-36c61e465d6965f2from
copilot/sub-pr-642
Feb 28, 2026
Merged

fix: hreflang="nb" and x-default for 2026-02-27 evening analysis#649
pethers merged 2 commits intomain-36c61e465d6965f2from
copilot/sub-pr-642

Conversation

Copy link
Contributor

Copilot AI commented Feb 28, 2026

All 14 2026-02-27-evening-analysis-*.html files used hreflang="no" in <link rel="alternate"> instead of "nb" (Norwegian Bokmål), and en.html was missing the x-default fallback entry — both deviating from the established repo pattern.

Changes

  • All 14 files<link rel="alternate" hreflang="no">hreflang="nb" for the Norwegian alternate
  • en.html — Added missing x-default alternate pointing to the English version
<!-- Before -->
<link rel="alternate" hreflang="no" href="https://riksdagsmonitor.com/news/2026-02-27-evening-analysis-no.html">

<!-- After -->
<link rel="alternate" hreflang="nb" href="https://riksdagsmonitor.com/news/2026-02-27-evening-analysis-no.html">
<link rel="alternate" hreflang="x-default" href="https://riksdagsmonitor.com/news/2026-02-27-evening-analysis-en.html">

Note: hreflang="no" on language-switcher <a> tags is intentionally unchanged — the reference file (2026-02-24-evening-analysis-en.html:100) uses "no" there.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Update evening analysis for Sweden's parliamentary activity fix: hreflang="nb" and x-default for 2026-02-27 evening analysis Feb 28, 2026
@pethers pethers marked this pull request as ready for review February 28, 2026 02:41
@pethers pethers merged commit d2a8aae into main-36c61e465d6965f2 Feb 28, 2026
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