The Whatsapp button shares the URL different from reality
source link: https://www.codesd.com/item/the-whatsapp-button-shares-the-url-different-from-reality.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The Whatsapp button shares the URL different from reality
I have a working whatsapp <a>
tag in this way:
<a class="whatsapp share-local-button
data-action="share/whatsapp/share"
target="_blank" href="whatsapp://send?text=link#withMark" >
<i class="fa fa-whatsapp"></i>
</a>
This works, but what is in href
is simply the shared text, not the url, which is the current....
I tried with
data-href="link#withMark"
But no different results...
How can I share my customized url and not the current one?
Try adding something like a bit of PHP if you are able to. if you want to keep it clean html then just ignore this.
in php u define the link u want to set in a variable, then just add <?php $yourvariable ?>
to the whatsapp://send?text= INSERT HERE
Related Articles
Get the URL generated from a form on submit with javascript
The Facebook Like button (box_count) as the account differs from Graph API
How to get the first URL different from the current URL in the route history?
CodeIgniter: Display the name different from the name of the controller, the URL displaying the controller function name after POST instead of the view
Name of the action different from the URL
URL different from the ASP MVC 3 view name
Sharing Facebook should pull images from the URL extracted from the canonical URL?
Get the URL parameters from the text link and publish an AJAX call
Check if the URL comes from a certain website
Is the functionality different from the takeover and then include
How to Rewrite the Url Name from the Web Configuration
Get the URL redirected from the original URL
Is the initialization different from the assignment?
The mvc4 application does not load the URL controller from the backbone collection to iis 8.5 after the publication
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK