diff --git a/src/main/resources/q-apps/q-apps.js b/src/main/resources/q-apps/q-apps.js index b4060dc2..06d8f69a 100644 --- a/src/main/resources/q-apps/q-apps.js +++ b/src/main/resources/q-apps/q-apps.js @@ -348,6 +348,10 @@ function interceptClickEvent(e) { } e.preventDefault(); } + else if (href.startsWith("http://") || href.startsWith("https://") || href.startsWith("//")) { + // Block external links + e.preventDefault(); + } } if (document.addEventListener) { document.addEventListener('click', interceptClickEvent);