add slashes to url for api calls