|
@@ -422,7 +422,7 @@ from metadata.conf import has_optimizer, OPTIMIZER
|
|
|
set: version
|
|
set: version
|
|
|
}, function (data) {
|
|
}, function (data) {
|
|
|
if (data && data.status == 0) {
|
|
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 {
|
|
else {
|
|
|
$.jHueNotify.error("${ _('An error occurred while saving your default Hue preference. Please try again...') }");
|
|
$.jHueNotify.error("${ _('An error occurred while saving your default Hue preference. Please try again...') }");
|