فهرست منبع

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');
         }
       });