Fix double slash URL when a trailing slash is already present