Removing Trailing slash from parent url

Making sure Trailing slash is removed from parent url while building resource url in Path.base