#3859: Check for case when the link is only a fragment
Merge pull request #4204 from openscholar/3859-better_link_gen

Check for case when the link is only a fragment