Skip to content

Fix: back button exits reader in one click and restore search state on back navigation#99

Merged
hunter-read merged 1 commit into
mainfrom
fix-navigation-issues
May 30, 2026
Merged

Fix: back button exits reader in one click and restore search state on back navigation#99
hunter-read merged 1 commit into
mainfrom
fix-navigation-issues

Conversation

@hunter-read
Copy link
Copy Markdown
Owner

Summary

The reader's back button previously used navigate(-1), which required multiple clicks after ToC/bookmark/search jumps that pushed history entries. It now navigates directly to location.state.from (set by all call sites), falling back to navigate(-1) for direct URL access.

Global search and in-system search now restore their query and results on back navigation: SearchView syncs the query to ?q= so returning to the URL replays the search, and SystemDetailView persists the query in sessionStorage.

Closes #98

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Docs / configuration only

Testing

  • Backend tests pass (pytest -q)
  • Frontend tests pass (npm test)
  • Tested manually in the browser

Notes for reviewer

@hunter-read hunter-read merged commit 9ec7cf8 into main May 30, 2026
5 checks passed
@hunter-read hunter-read deleted the fix-navigation-issues branch May 30, 2026 16:19
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.

[Bug] Back button in Reader view inconsistent navigation speed

1 participant