Browse Source

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

Johan Ahlen 9 năm trước cách đây
mục cha
commit
d83c5bd
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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');
         }
       });