CSR-2185
CSR-2185 vue-router no longer supports properties via params without it showing in the url. https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22
This commit is contained in:
parent
ed8ce4e4cb
commit
42dc848ee4
1 changed files with 4 additions and 4 deletions
|
|
@ -283,7 +283,7 @@ router.afterEach(async (to, from) => {
|
||||||
store.commit(storeMutations.UPDATE_LAST_PAGE_VISITED, to.name);
|
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 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 (
|
if (
|
||||||
store.getters.applicationUser.savedSessionId ||
|
store.getters.applicationUser.savedSessionId ||
|
||||||
store.getters.order.customer?.emailAddress
|
store.getters.order.customer?.emailAddress
|
||||||
|
|
@ -394,8 +394,6 @@ async function navigate(
|
||||||
: (existingPageDataForPage ?? {})
|
: (existingPageDataForPage ?? {})
|
||||||
);
|
);
|
||||||
|
|
||||||
optionalParams.isSavingNavigation = isSavingNavigation;
|
|
||||||
|
|
||||||
// add querystring params to the route. if they are already in the store then no need to add them
|
// add querystring params to the route. if they are already in the store then no need to add them
|
||||||
var queryStringsObject = {
|
var queryStringsObject = {
|
||||||
fmgPage: destinationFmgPageValue,
|
fmgPage: destinationFmgPageValue,
|
||||||
|
|
@ -427,7 +425,9 @@ async function navigate(
|
||||||
router.push({
|
router.push({
|
||||||
name: "root",
|
name: "root",
|
||||||
query: Object.assign(optionalQuery, queryStringsObject),
|
query: Object.assign(optionalQuery, queryStringsObject),
|
||||||
params: optionalParams,
|
state: {
|
||||||
|
isSavingNavigation: isSavingNavigation
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else if (matchingScenarioMap.destinationUrl !== undefined) {
|
} else if (matchingScenarioMap.destinationUrl !== undefined) {
|
||||||
navigateToUrl(matchingScenarioMap.destinationUrl, optionalQuery);
|
navigateToUrl(matchingScenarioMap.destinationUrl, optionalQuery);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue