Fix handling for external links.