remove trailing slash from baseurl