Fix error with appending '/' to the end of all urls.