Force slash at the end of the url parameter

This fix added a slash at the end of the url parameter (if it's not defined) to avoid unexplicit error `Couldn't resolve host`