Fixed the generator for relative links.