url.resolve(): retain trailing slash