redirecting to the new url on the api