Remove redundant links and add newl link.