remove link type, add hasLink attr