Fix appending '#' to links

Ref #40