ShareThis Uses Invalid URL

I have included ShareWidget on the profile pages of www.hireinfluence.com

eg.

Since I use this via https, I have included button.js, available through http://ws.sharethis.com/button/buttons.js

In addition, the og: url tag on the page also points to the URL displayed in the browser.

Somehow, the URL common to the ShareThis widget is always info.hireinfluence.com, not the address in the browser address bar.

Can anyone help me solve this problem?

Thanks Shardul.

+4
source share
1 answer

ShareThis has tracks that you can add to: expr:st_title='data:post.title' expr:st_url='data:post.url' to each button, forcing the share buttons to share the link in the message instead of the link in the browser.

The code will look something like this:

  < span class='st_twitter_hcount' expr:st_title='data:post.title' expr:st_url='data:post.url'/> < span class='st_facebook_hcount' expr:st_title='data:post.title' expr:st_url='data:post.url'/> < span class='st_googleplus_hcount' expr:st_title='data:post.title' expr:st_url='data:post.url'/> < span class='st_linkedin_hcount' expr:st_title='data:post.title' expr:st_url='data:post.url'/> 

This should also solve the image problem.

+4
source

Source: https://habr.com/ru/post/1489753/


All Articles