Make sure IHAT_URL doesn't have a trailing slash
Add slashes where they belong