few pr updates

This commit is contained in:
Bill Richardson 2024-03-07 19:38:57 -05:00
parent 07b6493bda
commit 0591469b55
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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}`;