With Magento 126.96.36.199 If you are on catalog search page and list mode is on.
And redirect to current page after adding product to cart is Active in admin panel.
If you try to add simple product to cart, product added to cart successful but redirection URL is not decoded properly
All ‘&’ replaced by ‘&’ and result in breaking search result... Result URL: http://127.0.0.1/magento_test/catalogsearch/result/index/?mode=list&q=camera
I know this file is responsible, In this fle app\code\core\Mage\Core\Helper\Abstract.php
public function escapeUrl($data)
It use htmlspecialchars function of php which replace & with
So if there is any solution for this, can it safe to remove
htmlspecialchars from this function?
This bug is resolved or not?
For what I do now to fix this issue is I have ovewrite my Cartcontroller
_goBack function which call
this->getResponse()->setRedirect($returnUrl); so for now I have put my custom url redirect.