Converted links to anchors

Avoiding links leading to 404 pages when javascript is not enabled or in
an edit view.  Added substring function to remove the hash symbol from
the input variable.