now it works for external links