Skip to content

Commit 954ee4f

Browse files
author
Ayaz Mittaqi
committed
fixed issue regarding referer url of compare page during adding product to wishlist.
1 parent 8a7f23e commit 954ee4f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/code/Magento/Catalog/Block/Product/Compare/ListCompare.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,7 @@ public function __construct(
122122
*/
123123
public function getAddToWishlistParams($product)
124124
{
125-
$continueUrl = $this->urlEncoder->encode($this->getUrl('customer/account'));
126-
$urlParamName = Action::PARAM_NAME_URL_ENCODED;
127-
128-
$continueUrlParams = [$urlParamName => $continueUrl];
129-
130-
return $this->_wishlistHelper->getAddParams($product, $continueUrlParams);
125+
return $this->_wishlistHelper->getAddParams($product);
131126
}
132127

133128
/**

0 commit comments

Comments
 (0)