Modified the code which handles links containing anchors. We now just

remove everything in front of the anchor. Updated tests.