瀏覽代碼

HUE-7743 [frontend] Don't adjust all links in embedded mode to /hue

Johan Ahlen 8 年之前
父節點
當前提交
da944cc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/templates/hue.mako

+ 1 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -979,7 +979,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
         huePubSub.subscribe('open.in.importer', openImporter);
 
         // prepend /hue to all the link on this page
-        $('a[href]').each(function () {
+        $('${ '.hue-embedded-container a[href]' if IS_EMBEDDED.get() else 'a[href]' }').each(function () {
           var link = $(this).attr('href');
           if (link.startsWith('/') && !link.startsWith('/hue')){
             link = '/hue' + link;