Add a function to generate relative URLs.
Remove test output.