Skip to content

Commit

Permalink
[onboarding] Prevent redirection from initial setup pages
Browse files Browse the repository at this point in the history
  • Loading branch information
widatama committed Nov 1, 2023
1 parent 4255a33 commit fca67f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,12 @@
});

if (typeof countlyGlobal.countly_tracking !== 'boolean' && isGlobalAdmin) {
if (Backbone.history.fragment !== '/not-responded-consent') {
if (Backbone.history.fragment !== '/not-responded-consent' && !/initial-setup|initial-consent/.test(window.location.hash)) {
app.navigate("/not-responded-consent", true);
}
}
else if (!countlyGlobal.member.subscribe_newsletter && !store.get('disable_newsletter_prompt') && (countlyGlobal.member.login_count === 3 || moment().dayOfYear() % 90 === 0)) {
if (Backbone.history.fragment !== '/not-subscribed-newsletter') {
if (Backbone.history.fragment !== '/not-subscribed-newsletter' && !/initial-setup|initial-consent/.test(window.location.hash)) {
app.navigate("/not-subscribed-newsletter", true);
}
}
Expand Down

0 comments on commit fca67f4

Please sign in to comment.