From 0591469b55cad637f99fc3676281e04821a57b6c Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 7 Mar 2024 19:38:57 -0500 Subject: [PATCH] few pr updates --- src/constants/endpoints.js | 2 +- src/router/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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}`;