Skip to content

Fix nav issues in 2026-02-27 evening analysis: back-to-news links, active lang switcher, invalid HTML#646

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

Fix nav issues in 2026-02-27 evening analysis: back-to-news links, active lang switcher, invalid HTML#646
pethers merged 2 commits intomain-36c61e465d6965f2from
copilot/sub-pr-642

Conversation

Copy link
Contributor

Copilot AI commented Feb 28, 2026

Three structural issues across all 14 language variants of the 2026-02-27 evening analysis articles.

Changes

  • back-to-news links — Changed ../index.html → language-specific news index in the same folder (index.html for EN, index_<lang>.html for all others), consistent with every other article in news/
  • Language switcher active state — Added class="lang-link active" + aria-current="page" to each file's self-referencing link; matches the generateArticleLanguageSwitcher() helper pattern used by generated articles
  • Invalid HTML (fi.html) — Removed stray </p> after </ul> (paragraph cannot wrap a list element)
<!-- before -->
<a href="../index.html" class="back-to-news"></a>
<a href="2026-02-27-evening-analysis-sv.html" class="lang-link" hreflang="sv">🇸🇪 Svenska</a>

<!-- after -->
<a href="index_sv.html" class="back-to-news"></a>
<a href="2026-02-27-evening-analysis-sv.html" class="lang-link active" hreflang="sv" aria-current="page">🇸🇪 Svenska</a>

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

…lid HTML in fi.html

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Update evening analysis on Sweden's press freedom measures Fix nav issues in 2026-02-27 evening analysis: back-to-news links, active lang switcher, invalid HTML Feb 28, 2026
@pethers pethers marked this pull request as ready for review February 28, 2026 01:55
@pethers pethers merged commit 20217ae into main-36c61e465d6965f2 Feb 28, 2026
@pethers pethers deleted the copilot/sub-pr-642 branch February 28, 2026 01: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