Explorar o código

Take the Hue base URL into account when redirecting from the Hue 404 page (#2718)

Co-authored-by: Akhil S Naik <asnaik@cloudera.com>
Johan Åhlén %!s(int64=4) %!d(string=hai) anos
pai
achega
049da696a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/templates/common_header.mako

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

@@ -203,7 +203,7 @@ ${ hueIcons.symbols() }
 
 % if hasattr(request, 'environ') and request.environ.get("PATH_INFO").find("/hue/") < 0:
   <script>
-    window.location.replace("/");
+    window.location.replace(window.HUE_BASE_URL || "/");
   </script>
 % endif