Merge branch 'release/2025.05.22' into nation/debugHeritageIns

This commit is contained in:
CarlNation 2025-05-13 10:58:19 -04:00 committed by GitHub
commit 03a6387331
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,7 @@ import { buildManualUrl } from "@/router/methods/helpers/build-manual-url";
import { getDestination } from "@/router/methods/helpers/get-destination";
import { savePageData } from "@/router/methods/helpers/save-page-data";
import router from "@/router";
import store from "@/store";
import { bailout } from "@/router/methods/error";
@ -34,7 +35,12 @@ async function navigate(scenario, currentPageName, withSaving = false, forceTopL
}
if (withSaving) {
await saveSession({ pageNameToLog: nextPage.name });
if (
store.getters?.applicationUser?.savedSessionId ||
store.getters?.order?.customer?.emailAddress
) {
await saveSession({ pageNameToLog: nextPage.name });
}
}
// Some pages require manually setting the next url