Use URL.resolve instead of Path.join for URLs.