fix url when version is not specified

when version wasn't specified a trailing slash was breaking the request.