/**
* Sets the URL to link to when the THyperLink component is clicked.
* @param string the URL
*/
public function setNavigateUrl($value)
{
if (parent::getNavigateUrl() === $value) {
return;
}
parent::setNavigateUrl($value);
if ($this->getActiveControl()->canUpdateClientSide()) {
//replace & with & and urldecode the url (setting the href using javascript is literal)
$url = urldecode(str_replace('&', '&', $value));
$this->getPage()->getCallbackClient()->setAttribute($this, 'href', $url);
}
}