Skip to content

Commit

Permalink
Labs open all links in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Aug 2, 2024
1 parent 182b770 commit df6421b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions webapp/home/templates/home/header-export.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
}
}

const subdomainLanding = () => window.location.pathname.includes('/landing/');

$(document).ready( () => {
// Enable bootstrap tooltips
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
Expand Down
8 changes: 2 additions & 6 deletions webapp/home/templates/home/subdomains/exported.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,9 @@


{% block onload %}
// Ensure that links open in new tab if external
// Ensure that links open in new tab
$('a').each( (i, item) => {
if (
item.href
&& item.href.slice(0, 1) !== "/"
&& !item.href.includes("{{ galaxy_base_url }}")
) {
if (item.href && item.href.slice(0, 1) !== "/") {
item.target = '_blank';
}
});
Expand Down

0 comments on commit df6421b

Please sign in to comment.