public function pageUrl($linkpage = null, $actionId = null)
{
$params = array('page' => $this->pageName());
if ($this->referrer()) {
$params['referrer'] = $this->referrer();
}
if ($actionId) {
$params['actionID'] = $actionId;
}
if (!$linkpage) {
$url = Wicked::url($this->pageName());
unset($params['page']);
} else {
$url = Horde::url($linkpage);
}
return $url->add($params);
}