Load session before updating funnel cookie
This commit is contained in:
parent
de73de51b3
commit
73ec3ce9ee
1 changed files with 6 additions and 6 deletions
|
|
@ -52,6 +52,12 @@ export async function beforeEach(to, from) {
|
|||
}
|
||||
}
|
||||
|
||||
// If sent from heritage, need to load session.
|
||||
const fromHeritageFlag = consumeQueryFromStash(queryStrings.FROM_HERITAGE);
|
||||
if (fromHeritageFlag) {
|
||||
await loadSessionIfPresent(true, routeData.SERVICE_LOCATION.name);
|
||||
}
|
||||
|
||||
// Process funnel cookie.
|
||||
updateOrCreateFunnelCookie();
|
||||
|
||||
|
|
@ -61,12 +67,6 @@ export async function beforeEach(to, from) {
|
|||
debugLog(" funnel cookie after: ", getFunnelCookie());
|
||||
}
|
||||
|
||||
// If sent from heritage, need to load session.
|
||||
const fromHeritageFlag = consumeQueryFromStash(queryStrings.FROM_HERITAGE);
|
||||
if (fromHeritageFlag) {
|
||||
await loadSessionIfPresent(true, routeData.SERVICE_LOCATION.name);
|
||||
}
|
||||
|
||||
// Update if logging is enabled.
|
||||
checkLogParam();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue