change link into RESTful format