I am attempting to create a mailto link which populates the body of the email with the current URL. The problem I am having, is that the gmail android app strips out equals signs, including %3D
Here is the code I am using.
$currentUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$currentUrl = str_replace('&', '%26', $currentUrl);
$currentUrl = str_replace('=', '%3D', $currentUrl);
<a href='mailto:?subject=".$emailsubject."&body=".$currentUrl."' class='actions'>Click to Send</a>
On desktop, it works fine. On mobile, the query strings get cut off and the equals signs do not get included in the email body.
Would anyone be able to assist please, as to how to get the equals into gmail app? Thanks.