Skip to content

Commit a9e29eb

Browse files
ENGCOM-3270: fixed issue regarding referer url of compare page during adding product to wishlist #18637
- Merge Pull Request #18637 from ayazwebkul/magento2:ayazmittaqi - Merged commits: 1. 954ee4f
2 parents 2e036c4 + 954ee4f commit a9e29eb

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)