Add external links and set internal links to relative