Fixes issue #129 by making links protocol agnostic.