Преглед изворни кода

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

Johan Ahlen пре 7 година
родитељ
комит
fb89e45
1 измењених фајлова са 1 додато и 1 уклоњено
  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;