Pārlūkot izejas kodu

HUE-5304 [frontend] Revert changeURL check

Enrico Berti 8 gadi atpakaļ
vecāks
revīzija
b300810

+ 1 - 3
desktop/core/src/desktop/static/desktop/js/hue.utils.js

@@ -199,9 +199,7 @@ if (!('addRule' in CSSStyleSheet.prototype)) {
     if (window.location.hash !== '' && newURL.indexOf('#') === -1){
     if (window.location.hash !== '' && newURL.indexOf('#') === -1){
       newURL = newURL + window.location.hash;
       newURL = newURL + window.location.hash;
     }
     }
-    if (newURL !== window.location.pathname) {
-      window.history.pushState(null, null, newURL);
-    }
+    window.history.pushState(null, null, newURL);
   };
   };
 
 
   hueUtils.replaceURL = function (newURL) {
   hueUtils.replaceURL = function (newURL) {