diff --git a/src/router/index.js b/src/router/index.js
index 30539023..510109c8 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -13,9 +13,9 @@ import { experimentTriggers } from '@/constants/experiments';
import applicationConfig from '@/constants/application-config';
import analyticsMixin from '@/mixins/analytics-mixin';
-import navigationScenarios from './router-constants/navigation-scenarios';
-import { saveSession } from "@/helpers/order-helper.js";
+import { saveSession } from '@/helpers/order-helper.js';
import routerParams from '@/router/router-constants/router-params';
+import navigationScenarios from './router-constants/navigation-scenarios';
const routes = [
{
@@ -123,20 +123,21 @@ router.afterEach(async (to, from) => {
const store = useMainStore();
// Update lastPageVisited in the store
store.updateLastPageVisited(to.name);
-
- if (from.redirectedFrom === undefined){
+
+ if (from.redirectedFrom === undefined) {
store.clearSaveSessionPromise();
}
const saveSessionSynchronous = !!from.params[routerParams.SAVE_SESSION_SYNCHRONOUS];
- await saveSession({shouldAwaitSaveSessionQueue: saveSessionSynchronous}).catch((error) => {
+ await saveSession({ shouldAwaitSaveSessionQueue: saveSessionSynchronous }).catch((error) => {
if (from.name === issPageValues.WELCOME_PAGE) {
router.navigate(
navigationScenarios.SAVE_SESSION_FAILED,
- {query: {issPage: issPageValues.WELCOME_PAGE}});
+ { query: { issPage: issPageValues.WELCOME_PAGE } }
+ );
}
});
-
+
if (to.query.issPage !== issPageValues.ENTRY_PAGE) {
// Push page view to GA
analyticsMixin.methods.pushPageViewToGA();
@@ -146,6 +147,16 @@ router.afterEach(async (to, from) => {
}
});
+router.navigateWithoutSaving = (
+ scenario,
+ currentRoute,
+ optionalQuery = {},
+ optionalParams = {},
+ optionalPageData = {}
+) => {
+ navigate(scenario, currentRoute, false, optionalQuery, optionalParams, optionalPageData);
+};
+
// Get route information by page name.
// This will reach out to the Cms and there is a 1:1 relationship between page names and route names.
async function GetRouteInfoFromPageName(pageName) {
@@ -174,8 +185,10 @@ router.overrideNavigation = (
isSavingNavigation,
optionalQuery = {},
optionalParams = {},
- optionalPageData) => {
- navigate(scenario,
+ optionalPageData
+) => {
+ navigate(
+ scenario,
currentRoute,
isSavingNavigation,
optionalQuery,
diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js
index 0d999da5..11de260a 100644
--- a/src/router/router-constants/routing-table.js
+++ b/src/router/router-constants/routing-table.js
@@ -90,6 +90,10 @@ const routingTable = () => [
scenario: navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS,
destinationIssPageValue: issPageValues.COVERAGE_STATEMENT
},
+ {
+ scenario: issPageValues.VEHICLE_LOOKUP,
+ destinationIssPageValue: issPageValues.VEHICLE_LOOKUP
+ },
{
scenario: navigationScenarios.CLICKED_FORWARD_WITH_BAILOUT,
destinationIssPageValue: issPageValues.BAILOUT_PAGE
diff --git a/src/ux-components/alert/alert.vue b/src/ux-components/alert/alert.vue
index 6f2fa80a..60a13cd2 100644
--- a/src/ux-components/alert/alert.vue
+++ b/src/ux-components/alert/alert.vue
@@ -21,13 +21,10 @@
v-else
class="m-0 text-body small">
-
- {{ getRouterLinkDisplayTextFromCopy(copy) }}
-
+