-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Description
When trying to compare products the following error is thrown:
PHP Fatal error: Call to undefined method Magento\\Core\\Helper\\Data::urlDecode() in /vagrant/app/code/Magento/Catalog/Controller/Product/Compare/Index.php on line 22,
Looking at Magento\Core\Helper\Data
There is no method urlDecode and I cant seem to find any reference to this method in the code base.
By adding the below from Magento1 partially resolves the issue:
/**
* base64_dencode() for URLs dencoding
*
* @param string $url
* @return string
*/
public function urlDecode($url)
{
$url = base64_decode(strtr($url, '-_,', '+/='));
return $url;
}