I have tried to implement support for the Whatsapp sharing interface in mobiles but I have encountered some issue. The url for Whatsapp sharing looks like this: whatsapp://send?{{arguments here}}. The problem is that Drupal / the module does not render the whatsapp:// prefix properly, it adds the url of the site which makes the link useless.

Would you please have a look at this issue and see if something can be done. Great work, thank.

Comments

W.M. created an issue.

W.M.’s picture

I recall that it was working with Whatsapp.. Now, perhaps I needed to patch some code I simply cannot recall.. Any updates on this? Thank you.

W.M.’s picture

A simple hack is to add http:// prefix to the URL pattern inside settings page and then using JS on page load, remove the first 7 characters, i.e. http://. Works.

Of course there should be a proper Drupal way to do it :-)

danon1981’s picture

For now that does work, would be nice if the module would support whatsapp natively.