Explorar o código

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

Johan Ahlen %!s(int64=7) %!d(string=hai) anos
pai
achega
fb89e45
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/hue.utils.js

+ 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;