Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Record TOC navigations in history (#1248) #1349

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Jinash-Rouniyar
Copy link

Apologies for the previous pull request, which contained unrelated changes. This PR addresses issue #1248 by ensuring that TOC navigation actions are properly recorded in the in-page history, while still allowing JavaScript to handle scrolling. This prevents unnecessary page refreshes that would reset DOM states. The commit has been cleaned up to only include the relevant changes.

@kiwix/lieutenants Please review when available.

@ShaopengLin
Copy link
Collaborator

@Jinash-Rouniyar This is for #1248 (comment). Alt + Right is just forward navigation. This looks more like a bug of your own code.

@Jinash-Rouniyar Jinash-Rouniyar marked this pull request as ready for review March 8, 2025 16:18
@Jinash-Rouniyar
Copy link
Author

@kelson42 I have resolved the issues and TOC navigation is working as expected. I have now marked this pull request ready for review. Thanks.

@kelson42 kelson42 force-pushed the fix-toc-history-1248 branch from 957abc8 to 0b11cfd Compare March 12, 2025 07:32
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.

None yet

2 participants