I am trying to pass the whole link through whatsapp . Suppose I have a link in my browser like:
http:
My usual way to share the link I used:
$actual_link="http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; echo "<li><a href='whatsapp://send?text=$actual_link'>Share</a></li>";
When I hover over the anchor element, it shows the link correctly, but when I click on it and get into whatsapp, the message appears as:
http:
Why am I not getting the second variable?
source share