Skip to content

Browser Back goes back one question - #44

Merged
PeterSlijkhuis merged 1 commit into
mainfrom
back-button-steps
Sep 30, 2026
Merged

PeterSlijkhuis merged 1 commit into
mainfrom
back-button-steps

Conversation

@PeterSlijkhuis

Copy link
Copy Markdown
Owner

Before: in "Which model should I use?" and "How many participants?", the browser's Back button left the page instead of going to the previous question.

After: each question is its own step in the browser history, so Back and Forward move one question at a time, and the earlier answer stays marked.

How: the model chooser keeps its path in the URL (?step=…, or ?model=… at an answer) and pushes a history entry per answer instead of replacing it. The sample size planner keeps its step number in the URL. Its answers stay in page state, so a reload starts over rather than showing a half-filled plan. Both pages have a test that presses Back.


Generated by Claude Code

The model chooser and the sample size planner kept their steps in page
state, so the browser's Back button left the page. Each question is now
its own history entry (in the URL), so Back and Forward move one
question at a time and earlier answers stay marked.
@PeterSlijkhuis
PeterSlijkhuis merged commit d57ba26 into main Sep 30, 2026
4 checks passed
@PeterSlijkhuis
PeterSlijkhuis deleted the back-button-steps branch October 1, 2026 07:17

This branch was successfully deployed

1 active deployment
github-pages — d57ba261 Deployed Sep 30, 2026 by PeterSlijkhuis via deploy #116
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.

1 participant