fixed issue with anchors in resource urls