-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 history navigation to hash fragment on Firefox when using view transitions #9563
Conversation
🦋 Changeset detectedLatest commit: 5aee87b 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 |
.changeset/breezy-eyes-teach.md
Outdated
"astro": patch | ||
--- | ||
|
||
Fix history navigation to hash fragment on Firefox when using view transitions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix history navigation to hash fragment on Firefox when using view transitions | |
Fixes history navigation to hash fragment on Firefox when using View Transitions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we were deliberately using the imperative form?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the opposite 🤔 we need Sarah (on phone rn, I can't ping for some reason)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sarah11918 to the rescue!
Changes
Firefox clears the history state on same page navigation, which later breaks history navigation.
This fix prevents that.
From discord user mcoms on #support > View Transitions back/forward not working in Firefox for fragment links:
SvelteKit had a similar issue.
Their analysis put me on the right track.
Testing
Tested manually on Firefox as we do not run automated e2e tests on Firefox.
Docs
n/a bug fix.