Browse Source

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

Enrico Berti 8 years ago
parent
commit
786db854c1

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