Add a slash at the end of the base URL if it's missing, closes #763