We need to be careful that the url doesn't have a trailing slash here.