Fix link handling of external URLs

See #156 for details.