removed absolute url's for api requests.