From b19fb27859590ac0c7173a070beecc1df1d9931a Mon Sep 17 00:00:00 2001
From: Andrei Mondoc <andreimondoc@gmail.com>
Date: Tue, 4 Feb 2020 14:22:20 +0000
Subject: [PATCH] handle email (mailto) urls

Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com>
---
 wp-rest/Controller/Url.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wp-rest/Controller/Url.php b/wp-rest/Controller/Url.php
index 9286856e7c..6f1009f8fd 100644
--- a/wp-rest/Controller/Url.php
+++ b/wp-rest/Controller/Url.php
@@ -124,6 +124,8 @@ class Url extends Base {
 
 		}
 
+		if ( strpos( $url, 'mailto' ) ) $url = strstr( $url, 'mailto' );
+
 		return apply_filters( 'civi_wp_rest/controller/url/parsed_url', $url, $params );
 
 	}
-- 
GitLab