浏览代码

HUE-6259 [core] Switching between Hue 3 and 4 preserves the current open app

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

+ 1 - 1
desktop/core/src/desktop/templates/common_header_footer_components.mako

@@ -422,7 +422,7 @@ from metadata.conf import has_optimizer, OPTIMIZER
       set: version
     }, function (data) {
       if (data && data.status == 0) {
-        location.href = version === 3 ? '/home' : '/hue'
+        location.href = version === 3 ? window.location.pathname.substr(4) + window.location.search : '/hue' + window.location.pathname + window.location.search
       }
       else {
         $.jHueNotify.error("${ _('An error occurred while saving your default Hue preference. Please try again...') }");