avoid url redirect for api calls