From c841f9ac793c5da6e8ae8427cad5bcc79bba8f6a Mon Sep 17 00:00:00 2001 From: vimal1083 <vimal1083@gmail.com> Date: Mon, 24 Aug 2020 12:20:06 +0530 Subject: [PATCH] Don't add target='_blank' if anchor tag is child of H2, H3 and H4 --- .../src/javascript/apply/application-form-links-new-window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypha/static_src/src/javascript/apply/application-form-links-new-window.js b/hypha/static_src/src/javascript/apply/application-form-links-new-window.js index ba701d96a..17f405a50 100644 --- a/hypha/static_src/src/javascript/apply/application-form-links-new-window.js +++ b/hypha/static_src/src/javascript/apply/application-form-links-new-window.js @@ -3,7 +3,7 @@ 'use strict'; // Make links on application forms open in a new window/tab. - $('.application-form').find('a').attr({ + $('.application-form').find('a').not('h2 > a').not('h3 > a').not('h4 > a').attr({ target: '_blank', rel: 'noopener noreferrer' }); -- GitLab