浏览代码

HUE-3342 [home] Set the proper URL when navigating back to root from a folder

Johan Ahlen 9 年之前
父节点
当前提交
d83c5bddb7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      desktop/core/src/desktop/templates/home2.mako

+ 2 - 0
desktop/core/src/desktop/templates/home2.mako

@@ -256,6 +256,8 @@ ${ fileBrowser.fileBrowser() }
       viewModel.activeEntry.subscribe(function (newEntry) {
         if (newEntry.definition().uuid && ! newEntry.isRoot()) {
           hueUtils.changeURL('/home?uuid=' + newEntry.definition().uuid);
+        } else if (newEntry.isRoot()) {
+          hueUtils.changeURL('/home');
         }
       });