I was using add this share plugin.I am creating dynamic data url from ajax call. My code was:
addthis.init();
$('.addthis_sharing_toolbox').attr('data-url',dta);
My problem current page url only sharing. I need to send my custom url. Any answer will be appreciated.
First, make sure the variable dta has the URL you'd like to use. Then, follow the instructions on this page to update the URL and title that are shared: http://support.addthis.com/customer/portal/articles/1692927-using-dashboard-configuration-tools-dynamically
Specifically, call the addthis.layers.refresh()
function.