}
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,
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(
'<div class="umcGalleryWrapperItem col-xxs-12 col-xs-6 col-sm-6 col-md-4" id="{id}">\n'
+ ' <a href="{link}">\n'