From f37098a0a625061fc4d69817040448ea276b0688 Mon Sep 17 00:00:00 2001 From: Cameron Hyde Date: Thu, 12 Dec 2024 15:24:50 +1000 Subject: [PATCH] Open internal usegalaxy links with target="_top" --- .../templates/labs/components/accordion.html | 2 -- .../templates/labs/components/info-modal.html | 29 ------------------- app/labs/templates/labs/exported.html | 7 +++-- 3 files changed, 5 insertions(+), 33 deletions(-) delete mode 100644 app/labs/templates/labs/components/info-modal.html diff --git a/app/labs/templates/labs/components/accordion.html b/app/labs/templates/labs/components/accordion.html index 24e3a6a..add698f 100644 --- a/app/labs/templates/labs/components/accordion.html +++ b/app/labs/templates/labs/components/accordion.html @@ -39,7 +39,6 @@

{% if item.button_icon %} {{ item.button_icon|iconkey }} @@ -55,7 +54,6 @@

- - diff --git a/app/labs/templates/labs/exported.html b/app/labs/templates/labs/exported.html index 8693b09..3aed368 100644 --- a/app/labs/templates/labs/exported.html +++ b/app/labs/templates/labs/exported.html @@ -77,9 +77,12 @@ if ( item.href && item.href.slice(0, 1) !== "/" - && !item.href.includes("{{ galaxy_base_url }}") ) { - item.target = '_blank'; + if (item.href.includes("{{ galaxy_base_url }}")) { + item.target = '_top'; + } else { + item.target = '_blank'; + } } }); {% endblock %}