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 for scroll + back bug #2191

Merged
merged 5 commits into from
Jan 15, 2025
Merged

Conversation

joetannenbaum
Copy link
Contributor

v2.0.1 introduced a bug where if you did the following sequence of events the URL wouldn't ultimately resolve to the correct final URL:

  • Navigate to a another page
  • Scroll down on that page
  • Press the back button

This PR ensures that even when handling the pop state, our internal history object is updated with the current page. Thanks to @crynobone for the catch.

@joetannenbaum joetannenbaum merged commit 0021d16 into master Jan 15, 2025
8 checks passed
@joetannenbaum joetannenbaum deleted the fix-url-not-updating-after-scroll branch January 15, 2025 20:10
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