Эх сурвалжийг харах

HUE-6077 [frontend] Moved open.link fallback to common_header

Enrico Berti 8 жил өмнө
parent
commit
565aa0bf34

+ 5 - 0
desktop/core/src/desktop/templates/common_header.mako

@@ -174,6 +174,11 @@ if USE_NEW_EDITOR.get():
       }
       huePubSub.publish('set.current.app.name', appName);
     });
+
+    // catch leaking links
+    huePubSub.subscribe('open.link', function (href) {
+      location.href = href;
+    });
   </script>
 
 </head>

+ 0 - 5
desktop/core/src/desktop/templates/common_header_footer_components.mako

@@ -497,11 +497,6 @@ from metadata.conf import has_optimizer, OPTIMIZER
       }
     });
 
-    // catch leaking links
-    huePubSub.subscribe('open.link', function (href) {
-      location.href = href;
-    });
-
     $("div.navigator ul.dropdown-menu").css("maxHeight", $(window).height() - 50);
     var scrollableDropdownTimeout = -1;
     $(window).on("resize", function () {