Handle broken links (#) by using linkName if possible.