Fix bug with relative URLs not being fully resolved