Эх сурвалжийг харах

HUE-7743 [frontend] Make sure we remove /hue in embedded URLs

Johan Ahlen 7 жил өмнө
parent
commit
fb89e45

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

@@ -225,7 +225,7 @@ window.hueUtils = window.hueUtils || (function () {
 
   hueUtils.changeURL = function (newURL) {
     if (IS_EMBEDDED) {
-      newURL = window.location.pathname + window.location.search + '#!' + newURL;
+      newURL = window.location.pathname + window.location.search + '#!' + newURL.replace('/hue', '');
     } else {
       if (window.location.hash !== '' && newURL.indexOf('#') === -1){
         newURL = newURL + window.location.hash;