Browse Source

HUE-7743 [frontend] Allow a different page.js base for embedded mode

Johan Ahlen 8 năm trước cách đây
mục cha
commit
4d7922f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      desktop/core/src/desktop/templates/hue.mako

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

@@ -987,7 +987,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           $(this).attr('href', link);
         });
 
-        page.base('/hue');
+        page.base(typeof HUE_EMBEDDED_BASE_URL !== 'undefined' ? HUE_EMBEDDED_BASE_URL : '/hue');
 
         self.lastContext = null;