Converted to a callable method and fixed formatting for links that contained anchors in the URL.