parse link handles more invalid ids