-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 ajax navigation detection #5720
Conversation
For debugging, run this in the console:
Click exampleBack button example |
The old event names are probably still used in GHE, so we should keep supporting them for a while, shouldn't we? |
Seems like a lot of features are still affected by this, e.g.
It's likely the de-duplication mechanism (with the (This is on |
All of them work for me on Chrome (latest Screen.Recording.mov |
Okay, so there must be some kind of tomfoolery goin' on here, because I still see the old event names on Firefox: So basically f11c406 broke everything for me 😞 Could it be GitHub doing some A/B testing or something? Edit: as a temporary fix we could remove the condition here f11c406#diff-cb1dafea7a9c68c5c2ebb2d56f749b3506c13f7d26feeaf56c86521b25c60358R144-R146 and just apply the polyfill indiscriminately. |
Likely AB testing. I made the change you suggested and released yet another hotfix release 😁 I'm glad I wrote the code this way instead of a generic "if GHE, use the old events;" it would have been more difficult to push another release. |
Working great now, thanks! |
Stopped working for me now... |
Same, it broke sometimes yesterday. Looks like everyone has the new events now: But that also means the polyfill actually breaks ajax detection… Edit: maybe because the polyfill dispatches the "turbo" events on the |
You're misunderstanding how the polyfill works. All of our event listeners are now for the turbo events. The listeners themselves are never affected by the polyfill, no events are prevented nor filtered. Any native The polyfill only catches If everyone has the latest events, then the polyfill isn't being triggered at all. The only thing that might be broken is the automatic dismissal of the polyfill, which again only redirects Now, if they changed their dispatch location, then we also need to update the listeners, but the polyfill isn't part of the issue. RGH 22.6.25 works for me though, every browser |
Then I guess it's a deduplication issue? 🤔 I'm seeing #5738 too |
@refined-github/maintainers please test because I'd like to release a new version within a few hours
Screen.Recording.2.mov