diff --git a/js/suitcase_external_links.js b/js/suitcase_external_links.js index 5916296..56e556e 100644 --- a/js/suitcase_external_links.js +++ b/js/suitcase_external_links.js @@ -7,9 +7,9 @@ $(document).ready(function() { - $('a:not(:has(img)').filter(function() { + $('a').filter(function() { return this.hostname && this.hostname !== location.hostname; - }).addClass('external'); + }).not('a:has(img)').addClass('external'); }); })(jQuery);