Переглянути джерело

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

Johan Ahlen 9 роки тому
батько
коміт
d83c5bd
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');
         }
       });