Should have checked if a slash exists in root url

I think you have a bug. we have configure a onpremise sentry server and we were using a https ROOT url. After root url I have give a / (slash). but it is taken //. It should have checked if a slash exists in root url.