Skip to content

Conversation

msurdi-a8c
Copy link
Contributor

In #14696 an early return was introduced that alters the default behavior of the underlying history API that is being patched.

Instead of just returning, the original/underlying function should be called to keep the default behavior.

Copy link
Contributor

@lforst lforst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh damn good one.

@AbhiPrasad
Copy link
Member

This feels important enough we should add a regression test for, and maybe even think about backporting.

@lforst
Copy link
Contributor

lforst commented Mar 5, 2025

This is a no-brainer to merge. We will follow up with regression tests.

@AbhiPrasad AbhiPrasad merged commit 97155e9 into getsentry:develop Mar 5, 2025
108 checks passed
@AbhiPrasad
Copy link
Member

opened #15594 and #15593 to track future work.

chargome added a commit that referenced this pull request Mar 6, 2025
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See #15576

Co-authored-by: AbhiPrasad <[email protected]>
Co-authored-by: Charly Gomez <[email protected]>
@adrianjost
Copy link

This broke our SPA badly. I suggest creating a 9.4.1 bugfix release for this.

@AbhiPrasad
Copy link
Member

@adrianjost we have a release in progress - should be out tomorrow morning at the latest #15611

@AbhiPrasad
Copy link
Member

@adrianjost released with https://github.com/getsentry/sentry-javascript/releases/tag/9.5.0 - appreciate the patience in the meantime.

@Zwyx
Copy link

Zwyx commented Mar 13, 2025

Oh wow. Thank you so much for fixing this. I spent hours pulling my hair, trying to understand what was wrong, focusing on React Router as I thought it was the culprit 🤯

Zwyx added a commit to Zwyx/detrak that referenced this pull request Mar 13, 2025
Sentry was preventing React Router's state from being synced with the browser. See getsentry/sentry-javascript#15576
Zwyx added a commit to Zwyx/detrak that referenced this pull request Mar 13, 2025
Sentry was preventing React Router's state from being synced with the browser. See getsentry/sentry-javascript#15576
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.

5 participants