WhatsApp共享按钮 - 共享URL不正确



我正在我的网站中添加共享按钮,并且我的共享URL有一些参数。但是,在电话上,URL 中的额外参数将被忽略。

我的按钮 :

<a class='whatsapp-icon' href='whatsapp://send?text=https://www.exmaple.com/#/lat=10.11,long=20.11'></a>

当我在网页链接中打开此链接时,它使用所有参数都可以正常打开,但在电话链接上只是 www.exmaple.com,参数"#/lat=10.11,long=20.11"在共享窗口中被忽略。

这是存在共享按钮的角度 1.xx 网页。

执行此操作的最新方法

<a *ngIf="isWhatsAppIconVisible" href="https://api.whatsapp.com/send?text=check out this link : {{shareableUrl}}" data-action="share/whatsapp/share">
    <img src="assets/whatsapp.png" alt="whatsapp" /> 
</a>
您需要

对锚href进行消毒。在这里,您可以找到问题的解决方案:

Whatsapp Sharing in AngularJS

继续摇摆!

最新更新