Fix relative links not working when trailing '/' was missing, small cleanup