Browse Source

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

Johan Ahlen 7 years ago
parent
commit
fb89e45
1 changed files with 1 additions and 1 deletions
  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;