7

The Whatsapp button shares the URL different from reality

 3 years ago
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.
neoserver,ios ssh client

The Whatsapp button shares the URL different from reality

advertisements

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

I was wondering if it's possible to catch the URL generated from a form when firing its 'submit' event. I know I can generate the URL from data I'm not talking about form's action url I mean the ?field=value&other-input-name=value& ... part Scenar

The Facebook Like button (box_count) as the account differs from Graph API

I use a like button box_count style for several articles on my page and grab the like count via the Graph API for further use. The problem is the like button on my page says 7 likes, but when I enter the exact same URL into Graph API it does not list

How to get the first URL different from the current URL in the route history?

I'm using a button on my app that redirects to the previous page. It looks like this: <button ng-click="goBack()">Go back</button> $scope.goBack = function() { $window.history.back(); } I want this button to go to the previous URL di

CodeIgniter: Display the name different from the name of the controller, the URL displaying the controller function name after POST instead of the view

I'm using CodeIgniter v3.1.3 I have a Controller called User.php that mainly contains all of User management functions ( login, register, update_user, forgot_password, update_settings, ... ) And I have a View called Profile.php where on this view, tw

Name of the action different from the URL

Is it possible to have a action method with a name that is different to the action name specified in the url? I tried doing this with the routes table in Global.asax with no luck. Here's what I tried: routes.MapRoute( "ApproveSellers", "Adm

URL different from the ASP MVC 3 view name

Is it possible to add some sort of meta data to a view to make the URL to be different than the view name? Example: [DisplayName("My-View")] public ActionResult MyView() { return View(); } As you see, I would like the url to be www.mydomain.com/

Sharing Facebook should pull images from the URL extracted from the canonical URL?

Recently i have noticed that if someone shares my website URL in facebook sharer then it pulls images from canonical URL not from fetched URL that is happening because of i have added - <meta property="og:url" content="http://www.mywebsi

Get the URL parameters from the text link and publish an AJAX call

I'm currently working on a bit of jQuery that will allow users to make an AJAX call from a text link. This is no problem but the text link has parameters that I need to send to the AJAX request in order for it to execute properly. My text link looks

Check if the URL comes from a certain website

Problem The user can submit a form where he can submit a link to sitea.com. Now what I want to do is check if the user actually submitted an URL coming from sitea.com What I've tried I've tried to check if the URL is correct (using regex), and contai

Is the functionality different from the takeover and then include

If I initialize an object like this: a = A.new a.extend(B) Is that different from doing the following? a = A.new.tap do |a| include B end No, both are not equivalent. a.extend(B) adds the methods of module B only to instance a, whereas a = A.new.tap

How to Rewrite the Url Name from the Web Configuration

i want to rewrite url name from WebConfig file..I have old url like this http://www.exmaple.com/'blogdetails'/some name/10082 Now my url is being changed to http://www.exmaple.com/blog/details/some name/10082. blogdetails is being chnaged to blog/Det

Get the URL redirected from the original URL

I have a table in my database which contains the URLs of some websites. I have to open those URLs and verify some links on those pages. The problem is that some URLs get redirected to other URLs. My logic is failing for such URLs. Is there some way t

Is the initialization different from the assignment?

1.char str[] = "hello"; //legal 2.char str1[]; str1 = "hello"; // illegal I understand that "hello" returns the address of the string literal from the string literal pool which cannot be directly assigned to an array variable

The mvc4 application does not load the URL controller from the backbone collection to iis 8.5 after the publication

This is the first time I have ever tried to publish web application; I'm using IIS 8.5. The application is a Backbone application that retrieves and saved data on SQL Server 2008. I had some issues displaying images and some other files, but I manage

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK