Hi People. I have implemented the following in to one of our sites to show an external link icon next to external links:
$(document).ready(function() {
$('#extlinks a').filter(function() {
return this.hostname && this.hostname !== location.hostname;
}).after(' <img src="/images/external.png" alt="external link"/>');
});
We use Business Catalyst and I hope it is not something to do with the way their servers are set up but, if you remove the www from the url ALL links show as external.
Here's an example: http://noosabiosphere.org.au/%5Fblog/Environment%5FBlog
Thanks.