Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

url changes to & amp; after add to cart
 
John79
Jr. Member
 
Total Posts:  5
Joined:  2010-02-02
 

Hi,

I’ve installed magento 1.7 (clean install, no upgrade)

When i use the layered navigation with i.e. 2 options my url looks like this:

http://www.domain.com/category.html?color=3&size;=5

if I then click on “add to cart” mageto redirects me back to the same page but then the url looks like this:

http://www.domain.com/category.html?color=3& amp;size=5

no only the color is applied to the filter and size is ignored.

any thoughts on this one?

 
Magento Community Magento Community
Magento Community
Magento Community
 
John79
Jr. Member
 
Total Posts:  5
Joined:  2010-02-02
 

never mind.. fixed it by placing this piece of code in app/code/core/mage/checkout/controleers/cartcontroler.php

before line 89

$backUrl = html_entity_decode($backUrl);

 
Magento Community Magento Community
Magento Community
Magento Community
 
jobvannoorloos
Jr. Member
 
Total Posts:  1
Joined:  2011-11-29
 

Works like a charm on 1.7.0.2. Thanks for sharing this simple fix.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top