Closed derwaldgeist closed 6 years ago
Thanks for logging and researching this issue, @derwaldgeist! Noted.
@derwaldgeist Thanks for adding this issue. Could you update the issue title to mention FlowRouter as this bug is specific to FlowRouter. I am also curious to know which versions of this package and flow router you are using. Is their any version changes in these two pkgs when you upgrade to Meteor 1.6.
Also the code related to this is located over in our auto-analytics package. Previously have had other issues relating to flow-router and this integration due to the way it handles history state.
I also suspect that it's not the monkey patch but logPageFirstLoad where we use window.history.replaceSate
I am guessing this is why path
disappears from the state object.
Thanks again for the very fast fix! Changed the title so it reflects FlowRouter.
Shall I close this issue or do you want to keep it open until the update has been published?
@derwaldgeist No problems. Lets keep this open until we publish the fix. As I am waiting for a code review on the original PR & will then need to make a new release for meteor analytics once the npm pkg has been published.
@derwaldgeist v3.0.5
is published 🎉 . I have tested locally with the Flow Router example and all seems good! 😄 Let me know how the latest release goes for you!
Going to mark this issue as resolved, but please open back up if you have any issues. 👍
Yeah, I can confirm it works after the update. Great work, thanks! 👍
As described here in detail:
https://github.com/meteor/meteor/issues/9419
after upgrading my app from Meteor 1.5 to 1.6 I faced the problem that the browser back button did not work anymore if the target of the back navigation was the initial page the app had been loaded with.
After hours of search, I could boil this down to a "monkey patched"
history.pushState()
function introduced byokgrow:analytics
. Once I take this package out, everything works fine. Obviously, this monkey patch worked until Meteor 1.5, but is not compatible with Meteor 1.6 anymore.