Prevent default only on non-external links.