commit
ec00031755
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue