Merge pull request #1950 from Safelite/feature/CSR-2183-safari-confirmation-alert-bugfix-ajc
This commit is contained in:
commit
4dcb26b2ee
3 changed files with 4 additions and 4 deletions
|
|
@ -98,7 +98,7 @@ export default {
|
|||
);
|
||||
}
|
||||
|
||||
if (error.response.status != "404") {
|
||||
if (error.response.status && error.response.status != "404") {
|
||||
// Do not route to error logic when no wipers found or no promo found (404s)
|
||||
router.navigateError();
|
||||
|
||||
|
|
|
|||
|
|
@ -185,9 +185,6 @@ export default {
|
|||
await baseMixin.methods.dispatchStoreAction(storeActions.CREATE_SUBMITTED_ORDER);
|
||||
this.$router.navigateWithoutSaving(this.navigationScenarios.PIA_SUCCESS, this.$route);
|
||||
},
|
||||
forwardButtonAction() {
|
||||
this.$router.navigateWithoutSaving(this.navigationScenarios.PIA_SUCCESS, this.$route);
|
||||
},
|
||||
},
|
||||
components: {
|
||||
loadingModal,
|
||||
|
|
|
|||
|
|
@ -268,11 +268,14 @@ router.beforeEach(async (to, from, next) => {
|
|||
if ((isInIframe && notToPIAReturn) || fromPaymentToConfirmation) {
|
||||
const newUrl = `${window.top.location.origin}${to.href}`;
|
||||
window.top.location.href = newUrl;
|
||||
next(false);
|
||||
|
||||
// Refresh page if navigating to self to prevent locking.
|
||||
// For now only carved out for vehicle; all modals are opened through anchor tags at the moment,
|
||||
// which also self navigate, but relied on the page remaining the same on self-navigation.
|
||||
} else if (toQueryPage === fromQueryPage && toQueryPage === getRedirectedStartPage()) {
|
||||
router.go(0);
|
||||
next(false);
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue