diff --git a/ucs-4.0-1/management/univention-management-console-module-appcenter/umc/js/appcenter/AppInstallationsItem.js b/ucs-4.0-1/management/univention-management-console-module-appcenter/umc/js/appcenter/AppInstallationsItem.js index 524ec9d..8f01538 100644 --- a/ucs-4.0-1/management/univention-management-console-module-appcenter/umc/js/appcenter/AppInstallationsItem.js +++ b/ucs-4.0-1/management/univention-management-console-module-appcenter/umc/js/appcenter/AppInstallationsItem.js @@ -142,7 +142,7 @@ define([ } if (this.webInterface) { var url = this.webInterface; - if (this.webInterface[0] == '/' && !this.isLocal()) { + if (/^(:\d+)?\//.test(url) && !this.isLocal()) { url = lang.replace('{protocol}//{host}{webInterface}', { protocol: window.location.protocol, host: host, diff --git a/ucs-4.0-1/services/univention-apache/js/ucs/startsite.js b/ucs-4.0-1/services/univention-apache/js/ucs/startsite.js index a1f339c..c94b487 100644 --- a/ucs-4.0-1/services/univention-apache/js/ucs/startsite.js +++ b/ucs-4.0-1/services/univention-apache/js/ucs/startsite.js @@ -209,6 +209,9 @@ define([ array.forEach(['link', 'icon', 'label', 'description'], lang.hitch(this, function(ikey) { localizedProps[ikey] = this._localizeString(props[ikey]); })); + if (/^:\d+\//.test(localizedProps.link)) { + localizedProps.link = window.location.protocol + '//' + window.location.hostname + localizedProps.link; + } var node = domConstruct.toDom(lang.replace( '