浏览代码

HUE-6906 [frontend] 'Add more' should open in a new tab and not throw a 404 in Hue 4

Enrico Berti 8 年之前
父节点
当前提交
8fe7020
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/templates/hue.mako

+ 1 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -145,7 +145,7 @@ ${ hueIcons.symbols() }
               </a>
               </a>
             <!-- /ko -->
             <!-- /ko -->
             <!-- ko if: item.href -->
             <!-- ko if: item.href -->
-              <a data-bind="hueLink: item.href, text: item.displayName"></a>
+              <a data-bind="attr: { href: item.href }, text: item.displayName" target="_blank"></a>
             <!-- /ko -->
             <!-- /ko -->
             <!-- ko if: item.isCategory -->
             <!-- ko if: item.isCategory -->
             <ul class="dropdown-menu" data-bind="foreach: { data: item.children, as: 'item' }">
             <ul class="dropdown-menu" data-bind="foreach: { data: item.children, as: 'item' }">