Fixed issue with internal links with query strings 

This change fixes issue #7.