also remove leading slash from base url