remove trailing slash from base url