Repair ajax for updating share link