Skip to content

Exclude modal dialogs from browser history #2075

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andreasgerstmayr
Copy link
Contributor

Currently, when I close a modal dialog (e.g. the beancount file context in the journal view when pressing on the transaction date) and then press the back button in my browser, the modal dialog opens again. If I open a few modal dialogs after another, all of them open again when I click the back button a few times.

With this change, history.back() is called upon closing the modal dialog, therefore removing the modal URL from the browser history. Now, pressing the back button brings me to the previous page, and not the previous modal dialog.

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