Fix API url so it uses base_url_format config value