diff --git a/src/global-methods.js b/src/global-methods.js index f2821343d..6d0fc7c0c 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -51,6 +51,7 @@ export default { }, (error) => { console.error(error); + console.log("Error calling: " + endpoint + " payload: " + JSON.stringify(payload)); if (logApiCall) { analyticsMixIn.methods.pushEventToGA( @@ -61,7 +62,7 @@ export default { ); } - //router.navigateError(); + router.navigateError(); return reject(error.response); } ); diff --git a/src/layouts/bailout/bailout.vue b/src/layouts/bailout/bailout.vue new file mode 100644 index 000000000..bbd1670c3 --- /dev/null +++ b/src/layouts/bailout/bailout.vue @@ -0,0 +1,79 @@ + + + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 2373b6e48..1af870e72 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -32,8 +32,14 @@ import analyticsMixin from "@/mixins/analytics-mixin"; import { experimentTriggers } from "../constants/experiments"; import { applicationConfig } from "../constants/application-config"; import { shouldStripPromoQueryString } from "@/helpers/promotions-helper"; +import bailout from "@/layouts/bailout/bailout"; const routes = [ + { + path: "/bailout", + name: "bailout", + component: bailout, + }, { path: "/", name: "root", @@ -436,7 +442,10 @@ async function DisplayPageError() { ); baseMixin.methods.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE); - location.reload(); + router.push({ + path: "/", + query: { fmgPage: 'bailout' }, + }); } function isExistingFmgPageName(pageName) {