فهرست منبع

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

Enrico Berti 8 سال پیش
والد
کامیت
340398f
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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 : '' );
       newSearch = window.location.search + (value ? (window.location.search.indexOf('?') > -1 ? '&' : '?') + param + '=' + value : '' );
     }
     }
 
 
+    if (newSearch === '?') {
+      newSearch = '';
+    }
+
     hueUtils.changeURL(window.location.pathname + newSearch);
     hueUtils.changeURL(window.location.pathname + newSearch);
   }
   }