Fixes #396 Link detection