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

Generates missing popstate events for Firefox when navigating to hash targets on the same page #10679

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

martrapp
Copy link
Member

@martrapp martrapp commented Apr 4, 2024

Changes

Closes #10249

On view transitions, Firefox does not generate popstate events on same-page navigation to hash fragments.

We already have a special handling for Firefox when it loses state on current site updates. Dispatching the popstate event can be seen as additional compensation here.

Testing

Manually tested.

Docs

N.a./bug fix

Copy link

changeset-bot bot commented Apr 4, 2024

🦋 Changeset detected

Latest commit: 260a088

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Apr 4, 2024
@martrapp martrapp merged commit ca6bb1f into main Apr 4, 2024
13 checks passed
@martrapp martrapp deleted the mt/popstate branch April 4, 2024 17:05
@astrobot-houston astrobot-houston mentioned this pull request Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

popstate event handlers not triggered in Firefox on hash change
2 participants