diff options
Diffstat (limited to 'assets/js')
| -rw-r--r-- | assets/js/red-links.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/js/red-links.js b/assets/js/red-links.js index 065d3a9..8c1d719 100644 --- a/assets/js/red-links.js +++ b/assets/js/red-links.js @@ -7,8 +7,11 @@ function () { $('a').each(function () { // avoid red link for external urls - if (this.hostname != window.location.hostname) + if (this.hostname != window.location.hostname) { + if ($(this).parents('#git-wiki-content').length > 0) + $(this).addClass("external-link"); return; + } var ext = this.href.split('.').pop().split(/\#|\?/)[0]; |
