diff --git a/etemplate/js/et2_widget_description.js b/etemplate/js/et2_widget_description.js index e7028ea5ea..a9a4cacd4c 100644 --- a/etemplate/js/et2_widget_description.js +++ b/etemplate/js/et2_widget_description.js @@ -114,8 +114,19 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], { _parseText: function(_value) { if (this.options.href) { + var href = this.options.href; + if (href.indexOf('/')==-1 && href.split('.').length >= 3 && + !(href.indexOf('mailto:')!=-1 || href.indexOf('://') != -1 || href.indexOf('javascript:') != -1) + ) + { + href = "/index.php?menuaction="+href; + } + if (href.charAt(0) == '/') // link relative to eGW + { + href = egw.link(href); + } return [{ - "href": this.options.href, + "href": href, "text": _value }]; }