[frontend] Fix open.link on Hue 3
@@ -184,6 +184,7 @@ if USE_NEW_EDITOR.get():
<script src="${ static('desktop/js/clusterConfig.js') }"></script>
<script type="text/javascript">
+ $(document).ready(function () {
huePubSub.subscribe('get.current.app.name', function () {
var appName = '';
if ('${ 'metastore' in apps }' === 'True' && location.href.indexOf('${"metastore" in apps and apps["metastore"].display_name}') !== -1) {
@@ -194,10 +195,10 @@ 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>
