diff --git a/src/router/index.js b/src/router/index.js index 55f2e60e1..f3583e312 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -286,7 +286,7 @@ router.afterEach(async (to, from) => { store.commit(storeMutations.UPDATE_LAST_PAGE_VISITED, to.name); // If saving on navigation is requested, check for saved SessionId or EmailAddress to determine if saving is appropriate - if (eval(to.params.isSavingNavigation)) { + if (eval(window.history.state.isSavingNavigation)) { if ( store.getters.applicationUser.savedSessionId || store.getters.order.customer?.emailAddress @@ -397,8 +397,6 @@ async function navigate( : (existingPageDataForPage ?? {}) ); - optionalParams.isSavingNavigation = isSavingNavigation; - // add querystring params to the route. if they are already in the store then no need to add them var queryStringsObject = { fmgPage: destinationFmgPageValue, @@ -430,7 +428,9 @@ async function navigate( router.push({ name: "root", query: Object.assign(optionalQuery, queryStringsObject), - params: optionalParams, + state: { + isSavingNavigation: isSavingNavigation + } }); } else if (matchingScenarioMap.destinationUrl !== undefined) { navigateToUrl(matchingScenarioMap.destinationUrl, optionalQuery);