Browse Source

HUE-5871 [jasmine] Fix hue.utils test on IE11

Enrico Berti 8 years ago
parent
commit
340398f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      desktop/core/src/desktop/static/desktop/js/hue.utils.js

+ 4 - 0
desktop/core/src/desktop/static/desktop/js/hue.utils.js

@@ -220,6 +220,10 @@ if (!('addRule' in CSSStyleSheet.prototype)) {
       newSearch = window.location.search + (value ? (window.location.search.indexOf('?') > -1 ? '&' : '?') + param + '=' + value : '' );
     }
 
+    if (newSearch === '?') {
+      newSearch = '';
+    }
+
     hueUtils.changeURL(window.location.pathname + newSearch);
   }