Skip to content
Snippets Groups Projects
Commit c841f9ac authored by vimal1083's avatar vimal1083
Browse files

Don't add target='_blank' if anchor tag is child of H2, H3 and H4

parent 6af6b705
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
'use strict'; 'use strict';
// Make links on application forms open in a new window/tab. // 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', target: '_blank',
rel: 'noopener noreferrer' rel: 'noopener noreferrer'
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment