get link target correctly