diff --git a/src/router/index.js b/src/router/index.js index a49d416aa..d9d03e213 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,10 +1,11 @@ // Supporting files import { createWebHistory, createRouter } from "vue-router"; import { storeActions } from "@/constants/store-actions"; -import baseMixin from "@/mixins/base-mixin"; import { lazyLoadComponent } from "@/router/dynamic-routing/component-loader.js"; import { routingTable } from "@/router/router-constants/routing-table.js"; import { globalEvents, globalEventTypes } from "@/constants/events"; +import { routerParameterKeys } from '@/router/router-constants/router-parameter-keys' +import baseMixin from "@/mixins/base-mixin"; import eventBus from "@/helpers/event-bus/event-bus"; import store from "@/store"; import { handleInfoFromHeritageFunnel, saveOrder, } from "@/helpers/heritage-integration-helper"; @@ -165,7 +166,7 @@ async function navigate(scenario, currentRoute, invalidateOnSave, optionalQuery query: Object.assign(optionalQuery, { fmgPage: destinationFmgPageValue, }), - params: optionalParams, + params: Object.assign(optionalParams, {[routerParameterKeys.FROM_ROUTER_NAVIGATE]: true}) }); } else if (matchingScenarioMap.destinationUrl !== undefined) { if (matchingScenarioMap.shouldNavigateToHeritageFunnel) { diff --git a/src/router/router-constants/router-parameter-keys.js b/src/router/router-constants/router-parameter-keys.js index 0c75eb738..7ace86f37 100644 --- a/src/router/router-constants/router-parameter-keys.js +++ b/src/router/router-constants/router-parameter-keys.js @@ -1,3 +1,5 @@ -const routerParameterKeys = { }; +const routerParameterKeys = { + FROM_ROUTER_NAVIGATE: 'fromRouterNavigate', + }; export { routerParameterKeys }; \ No newline at end of file