few pr updates
This commit is contained in:
parent
07b6493bda
commit
0591469b55
2 changed files with 4 additions and 4 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue