소스 검색

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

Enrico Berti 8 년 전
부모
커밋
786db854c1
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...') }");