-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Version
4.0.8
Reproduction link
https://jsfiddle.net/gob8sL0q/
Steps to reproduce
- Open the JSFiddle.
- Click the links.
- Check the console.
What is expected?
Only pushState
should be called (as far as I know).
What is actually happening?
replaceState
is called with the current URL, followed by pushState
with the new URL.
I ran into this while trying to integrate Google Tag Manager and Google Analytics. GTM has a History Change
trigger, and it is triggering twice for each navigation because of this issue.
While I could probably filter out the replaceState
calls, this should not be necessary if I'm understanding correctly, and just makes GTM more difficult to work with.
Metadata
Metadata
Assignees
Labels
No labels