fix getting link in openHandler