This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
Page reloading in infinite loop in Firefox and Safari if tracking browser location object #660
Open
Description
Hello,
I recently encountered a problem in my app that in firefox and safari the page got into an infinite reload loop. In chrome this did not happen. After much investigation I have found that the problem was in a specific tracking we did.
window.analytics.track('Page Viewed', {
title: document.title,
label: toState.name,
page: window.location.pathname,
url: window.location,
});
Changing the "url: window.location" to "url: window.location.href" has fixed the issue. I'm pretty sure this problem has started happening recently, possibly in the last week but not sure on the specific timeline.
Metadata
Assignees
Labels
No labels