Add target="_blank" to external links
$('a').attr('target', function() { | |
if(this.host == location.host) return '_self' | |
else return '_blank' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment