Merge pull request #817 from Safelite/defect/digital/fix-lower-env-logging

Fix error logging in lower environments
This commit is contained in:
Josh Dassinger 2024-08-09 08:59:17 -05:00 committed by GitHub
commit d08fe7d457
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: