We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df9c041 commit 6a4998cCopy full SHA for 6a4998c
docs/reference/themes/mongodb/static/js/scripts.js
@@ -17,4 +17,10 @@ jQuery(document).ready(function(){
17
jQuery('[data-toggle="tooltip"]').tooltip();
18
jQuery("body").addClass("hljsCode");
19
hljs.initHighlightingOnLoad();
20
+ var linkRegex = new RegExp('/' + window.location.host + '/');
21
+ jQuery('a').not('[href*="mailto:"]').each(function () {
22
+ if ( ! linkRegex.test(this.href) ) {
23
+ $(this).attr('target', '_blank');
24
+ }
25
+ });
26
});
0 commit comments