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

[RESOLVED] setLinkUrl doesn’t handle Ampersands? 
 
flowstack
Sr. Member
 
Avatar
Total Posts:  159
Joined:  2008-01-30
London, United Kingdom
 

<action method="setLinkUrl"><url>http://www.mydomain.com?a=1&b;=2</url></action>

in catalog.xml causes a simplexml_load_string parse error. Removing the ampersand fixes it.

Is this a bug? If not, how can I put an ampersand in URLs?

Thanks.

NOTE: The semi-colon shouldn’t be there. The forum won’t let me remove it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
flowstack
Sr. Member
 
Avatar
Total Posts:  159
Joined:  2008-01-30
London, United Kingdom
 

WORKAROUND

Used & in the URL instead of the ampersand symbol.

<action method="setLinkUrl"><url>http://www.mydomain.com?a=1&amp;b=2</url></action>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top