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: Navigate Back not working on docs page, navigate forward is currently not possible #595

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

reglim
Copy link
Contributor

@reglim reglim commented Aug 31, 2023

I couldn't get navigate forward to work, because we have a huge problem with event handlers pushing urls even when we go back a page, so when you click back you can't click forward again. I discussed it with @randombenj and we decided to leave it for the moment.

How I did it was I added an event listener for the popstate event that is triggered when the user clicks a navigation button, and triggered back again when it fired, because clicking back once didn't work for unknown reasons.

@reglim reglim force-pushed the fix/593-history-not-working-on-docs-page branch from 699025a to 15dee9a Compare August 31, 2023 11:12
@randombenj randombenj self-requested a review August 31, 2023 11:13
Copy link
Member

@randombenj randombenj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Navigate forward is currently not possible.

fixes: #593
@reglim reglim force-pushed the fix/593-history-not-working-on-docs-page branch from 15dee9a to 1fc90d0 Compare August 31, 2023 11:15
@reglim reglim merged commit c4e28c5 into main Aug 31, 2023
@reglim reglim deleted the fix/593-history-not-working-on-docs-page branch August 31, 2023 11:21
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