generate relative URLs