Fix relative links conversion