Explorar o código

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

Johan Ahlen %!s(int64=9) %!d(string=hai) anos
pai
achega
d83c5bd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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');
         }
       });