set base url to the right value