this PR introduces the new whatsapp click to chat function. They did change the way they are sharing messages a while ago and it works with desktop clients as well.
It should fix Issue https://github.com/fritzmg/contao-sharebuttons/issues/37.
Changes:
I removed the \Environment check completely. We won't need it with whatsapp-web being on desktop clients and the \Environment class didn't get mobile devices anymore.
I've debugged through my local installation and found out that it even used the Environment class from certain tests from other plugins such as Haste. It should have been used with Contao\Environment to not introduce other bugs. I do think it isn't needed anymore.
I've also added a target _blank so users do not leave the website when clicking on the link (Important for desktop clients).
Hello @fritzmg,
this PR introduces the new whatsapp click to chat function. They did change the way they are sharing messages a while ago and it works with desktop clients as well. It should fix Issue https://github.com/fritzmg/contao-sharebuttons/issues/37.
Changes:
I removed the \Environment check completely. We won't need it with whatsapp-web being on desktop clients and the \Environment class didn't get mobile devices anymore.
I've debugged through my local installation and found out that it even used the Environment class from certain tests from other plugins such as Haste. It should have been used with Contao\Environment to not introduce other bugs. I do think it isn't needed anymore.
I've also added a target _blank so users do not leave the website when clicking on the link (Important for desktop clients).
References:
https://faq.whatsapp.com/general/chats/how-to-use-click-to-chat