Add links hash for anchors