fix to handle external links

Ref #283