Pass non-popup links through framework's link handler

This commit is contained in:
Nathan Gray 2011-07-05 14:45:25 +00:00
parent d69661ab55
commit 4e54cdabc0

View File

@ -492,6 +492,11 @@ class link_widget
{ {
$options = ' target="'.($target ? $target : '_blank').'"'; $options = ' target="'.($target ? $target : '_blank').'"';
} }
else
{
// Pass link through framework's handler
$href = str_replace(',','%2C',egw::link('/index.php',egw_link::view($link['app'],$link['id'],$link),$link['app']));
}
if ($help) if ($help)
{ {
$options .= " onMouseOver=\"self.status='".addslashes(html::htmlspecialchars($help))."'; return true;\""; $options .= " onMouseOver=\"self.status='".addslashes(html::htmlspecialchars($help))."'; return true;\"";
@ -499,7 +504,7 @@ class link_widget
} }
return html::a_href( return html::a_href(
html::htmlspecialchars(egw_link::title($link['app'],$link['id'])), html::htmlspecialchars(egw_link::title($link['app'],$link['id'])),
egw_link::view($link['app'],$link['id'],$link),'',$options); $href ? $href : egw_link::view($link['app'],$link['id'],$link),'',$options);
} }
/** /**