change link in adopted list to code, not id