Skip to content

Commit 73b9612

Browse files
authored
Update sidebar.js
1 parent bcd75f4 commit 73b9612

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ define([
261261
$(document).trigger('ajax:removeFromCart', {
262262
productIds: [productData['product_id']]
263263
});
264-
if (window.location.href === this.shoppingCartUrl) {
264+
if (window.location.href.indexOf(this.shoppingCartUrl) === 0) {
265265
window.location.reload();
266266
}
267267
}

0 commit comments

Comments
 (0)