8413286
Replace common logic with helper function to check link url Signed-off-by: Clement Verna <cverna@tutanota.com>