Fixing external link detection