Bug with external links fixed

When the own domain (location.host) is in an external link, then the
handling of the link didn't work properly (it was considered as an
internal link).
Example:
my website: http://example.com
External link: http://www.facebook.com/example.com