Handle WEBAPP_BASE_URL whether it has a slash at the end or not.