fix url for rest adapt