diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 3e6a617e..8f21cdd9 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -117,7 +117,7 @@ const endpoints = Object.freeze({ method: 'GET' }, TaxOrderItems: { - url: '/price/api/v1/price/taxed-order-items', + url: `${PRICE_BASE_URL}/taxed-order-items`, method: 'GET' }, LogExperimentExposureIfAssigned: { diff --git a/src/router/index.js b/src/router/index.js index 36f212b5..8b1e4823 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -138,12 +138,12 @@ router.beforeEach(async (to, from) => { const notToPayInAdvanceReturn = toQueryPage !== issPageValues.PAYMENT_RETURN; const isInIframe = fromQueryPage === issPageValues.PAYMENT_PAGE; - // fromPaymentToConfirmation workaround for navigating from an iframe but + // isFromPaymentPageToOrderConfirmation workaround for navigating from an iframe but // isInIframe evaluates to false for some reason when navigating from payment to confirmation - const fromPaymentToConfirmation = + const isFromPaymentPageToOrderConfirmation = fromQueryPage === issPageValues.PAYMENT_PAGE && toQueryPage === issPageValues.ORDER_CONFIRMATION; - if ((isInIframe && notToPayInAdvanceReturn) || fromPaymentToConfirmation) { + if ((isInIframe && notToPayInAdvanceReturn) || isFromPaymentPageToOrderConfirmation) { // need to set window.top.location.href directly when navigating out of an iframe // especially when navigating with browser buttons const newUrl = `${window.top.location.origin}${to.href}`;