link is now created with url

resource have to generates text/plain
ajax call have to parse text/plain instead of json