diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a89343bf1..00529a4888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Draft +- Fix incorrect request URL for adding items to cart on multi-lang storefronts [#2634](https://github.com/bigcommerce/cornerstone/pull/2634) - Fix desktop header selectors layout for Language, Currency, and Channel [#2633](https://github.com/bigcommerce/cornerstone/pull/2633) - Fix incorrect request URL for getting states [#2630](https://github.com/bigcommerce/cornerstone/pull/2630) - Make cart preview work with multi-lang by passing baseUrl to cart API calls [#2627](https://github.com/bigcommerce/cornerstone/pull/2627) diff --git a/assets/js/theme/common/product-details.js b/assets/js/theme/common/product-details.js index d1d6cf40dc..b48fd1303a 100644 --- a/assets/js/theme/common/product-details.js +++ b/assets/js/theme/common/product-details.js @@ -480,7 +480,7 @@ export default class ProductDetails extends ProductDetailsBase { // if no modal, redirect to the cart page this.redirectTo(response.data.cart_item.cart_url || this.context.urls.cart); } - }); + }, { baseUrl: this.context.secureBaseUrl }); this.setLiveRegionAttributes($addToCartBtn.next(), 'status', 'polite'); }