浏览代码

HUE-6705 [fb] Opening directory after opening editor does not load at first click

Enrico Berti 8 年之前
父节点
当前提交
fbccc53c4e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/models.py

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -1678,7 +1678,7 @@ class ClusterConfig():
         'type': 'hdfs',
         'displayName': _('Files'),
         'tooltip': _('Files'),
-        'page': '/filebrowser/'
+        'page': '/filebrowser/' + (not self.user.is_anonymous() and 'view=' + self.user.get_home_directory() or '')
       })
 
     if is_s3_enabled() and has_s3_access(self.user):