Fix base_url handling.