From 53536e79ed6b7d253b81b95982f1eebd8daa4320 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Thu, 8 Aug 2024 13:54:05 -0500 Subject: [PATCH] Fix error logging in lower environments --- src/layouts/entry-page/entry-page.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/layouts/entry-page/entry-page.vue b/src/layouts/entry-page/entry-page.vue index 8c4cfba3..8fc1d6e5 100644 --- a/src/layouts/entry-page/entry-page.vue +++ b/src/layouts/entry-page/entry-page.vue @@ -11,6 +11,7 @@ import issPageValues from '@/router/router-constants/issPage-values'; import { validateISSClientTag, validateISSClientSignature } from '@/helpers/clientauth-helper'; import { useMainStore } from '@/store'; +import applicationConfig from '@/constants/application-config'; export default { name: 'entry-page', @@ -46,8 +47,16 @@ export default { } this.mainStore.applicationUser.coverageAttempts = 0; - // Forced full location redirect here. We do not want the entry page as part of the router/flow/path history. - window.location = `/?issPage=${issPageValues.WELCOME_PAGE}`; + if ( + applicationConfig.CURRENT_ENVIRONMENT === 'Localhost' + || applicationConfig.CURRENT_ENVIRONMENT === 'Dev' + || applicationConfig.CURRENT_ENVIRONMENT === 'SysTest' + ) { + this.navigateForward(); + } else { + // Forced full location redirect here. We do not want the entry page as part of the router/flow/path history. + window.location = `/?issPage=${issPageValues.WELCOME_PAGE}`; + } } }, methods: