We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9cb846b + a234f2c commit 24f8714Copy full SHA for 24f8714
app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js
@@ -135,7 +135,7 @@ define([
135
// trigger global event, so other modules will be able add parameters to redirect url
136
$('body').trigger('catalogCategoryAddToCartRedirect', eventData);
137
138
- if (eventData.redirectParameters.length > 0) {
+ if (eventData.redirectParameters.length > 0 && window.location.href === res.backUrl) {
139
parameters = res.backUrl.split('#');
140
parameters.push(eventData.redirectParameters.join('&'));
141
res.backUrl = parameters.join('#');
0 commit comments