Handle relative uris in links