Remove preceding slashes before doing anything with url.

From #6520.