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: avoid history pushState triggering multiple times when click on same internal link #3405

Merged
merged 2 commits into from Jan 3, 2024

Conversation

zonemeen
Copy link
Collaborator

@zonemeen zonemeen commented Jan 3, 2024

Clicking on the a tag of the same internal link, such as clicking on the same sidebar item or navBar title multiple times, will cause history.pushState to trigger multiple times, which normally shouldn't be triggered.

@zonemeen zonemeen changed the title fix: click on same internal a tag to avoid history pushState triggering multiple times fix: avoid history pushState triggering multiple times Jan 3, 2024
@zonemeen zonemeen changed the title fix: avoid history pushState triggering multiple times fix: avoid history pushState triggering multiple times when click on same internal link Jan 3, 2024
src/client/app/router.ts Outdated Show resolved Hide resolved
@brc-dd brc-dd merged commit d279e63 into vuejs:main Jan 3, 2024
7 checks passed
@zonemeen zonemeen deleted the fix/route-history branch January 4, 2024 01:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants