diff --git a/wp-rest/Controller/Url.php b/wp-rest/Controller/Url.php index 9286856e7c88e6d1cf9057cf78da943cb34f73d1..6f1009f8fdb321c0f9a79b2d569372e629936e59 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 ); }