#291 fix for intra-page links
#291 fix for inter-page links