Fix back-to-top button: add missing element and correct script path in all 14 proposition articles#797
Merged
pethers merged 2 commits intomain-ac1fc5b69b425a9bfrom Mar 4, 2026
Conversation
… in all 14 articles Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add government propositions articles for 2026-03-04
Fix back-to-top button: add missing element and correct script path in all 14 proposition articles
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All 14 language versions of the 2026-03-04 government propositions articles referenced
../scripts/back-to-top.js(non-existent) instead of../js/back-to-top.js, and were missing theid="back-to-top"button element the script binds to — causing a 404 and silent no-op on every page.Changes
../scripts/back-to-top.js→../js/back-to-top.jsacross all 14 files (scripts/holds the TS source; compiled output is injs/)<button id="back-to-top">to each page — required byjs/back-to-top.jswhich usesgetElementById('back-to-top')to bind scroll behavioraria-labelis localized per language (e.g."返回顶部"for ZH,"Zurück zum Seitenanfang"for DE,"العودة إلى الأعلى"for AR).💡 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.