From 1188f7a6e943a3100b14f9cc8324b710a5e860e5 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 17 Nov 2025 15:02:08 -0500 Subject: [PATCH] CASH-1884 CASH-1884 save quote broke in prod --- src/router/methods/after-each.js | 4 ++++ src/router/methods/helpers/consume-referral-info.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/router/methods/after-each.js b/src/router/methods/after-each.js index 1e1f80134..608119399 100644 --- a/src/router/methods/after-each.js +++ b/src/router/methods/after-each.js @@ -1,6 +1,10 @@ import analyticsMixin from "@/mixins/analytics-mixin"; +import store from "@/store"; +import { storeMutations } from "@/constants/store-mutations"; export async function afterEach(to, from) { + store.commit(storeMutations.UPDATE_LAST_PAGE_VISITED, to.name); + // digital consumer logging analyticsMixin.methods.logDigitalConsumer(); diff --git a/src/router/methods/helpers/consume-referral-info.js b/src/router/methods/helpers/consume-referral-info.js index 87700d500..125aed84f 100644 --- a/src/router/methods/helpers/consume-referral-info.js +++ b/src/router/methods/helpers/consume-referral-info.js @@ -10,6 +10,7 @@ export async function consumeReferralQuerystrings() { let parentAccount = getQuerystringParameter(queryStrings.PARENT_ACCOUNT); let correlationId = getQuerystringParameter(queryStrings.CORRELATION_ID); let referralDate = null; + let savedSessionId = null; // If no referral number in querystring, check if heritage funnel updated last. // This would indicate a customer that went to heritage but did not return through the @@ -20,6 +21,7 @@ export async function consumeReferralQuerystrings() { parentAccount = getFunnelCookie().ReferralParentAccountNumber; correlationId = getFunnelCookie().ReferralCorrelationId; referralDate = getFunnelCookie().ReferralDate; + savedSessionId = getFunnelCookie().SavedSessionId; } if (referralNumber) { @@ -30,6 +32,10 @@ export async function consumeReferralQuerystrings() { if (referralDate) { store.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate); } + if (savedSessionId) { + store.commit(storeMutations.UPDATE_SAVED_SESSION_ID, savedSessionId); + } + updateOrCreateFunnelCookie(); } }