I have a whatsapp share button that shares the current URL (using window.location)
waCurrentPage = function() {
return encodeURI("whatsapp://send?text=Lets go here: " + 'http://' + window.location.hostname + window.location.pathname + window.location.search);
}
Button
<a class="btn btn-social-icon btn-whatsapp" href="javascript:window.location=waCurrentPage();">Whatsapp share this list</a>
I can see that from the browser side it's sending the correct URL...
...but when it gets to the whatsapp side it has cut off the second parameter
Anyone have an idea how I could fix it?