Add path_substition function for both api_url and audience_url.