diff --git a/client/res/templates/header.tpl b/client/res/templates/header.tpl
index 874dcb9be0..9e2d3b136f 100644
--- a/client/res/templates/header.tpl
+++ b/client/res/templates/header.tpl
@@ -21,7 +21,9 @@
{{/if}}
{{/if}}
+
{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label scope=../scope}}{{/if}}{{/if}}
+
{{/each}}
diff --git a/client/src/view-helper.js b/client/src/view-helper.js
index 5a58a421dd..2d705fd9b3 100644
--- a/client/src/view-helper.js
+++ b/client/src/view-helper.js
@@ -450,12 +450,12 @@ class ViewHelper {
}
if (iconHtml) {
- html = iconHtml + ' ' + html;
+ html = iconHtml + ' ' + '' + html + '';
}
else if (iconClass) {
const iconHtml = $('').addClass(iconClass).get(0).outerHTML;
- html = iconHtml + ' ' + html;
+ html = iconHtml + ' ' + '' + html + '';
}
const tag = link ? '' : '