set correct base_url