fixed bugs with relative URLs

there were some bugs with relative URLs were an extra "/" was
concatenated on. i did not effect the system i just did not look good