Though the generated HTML for the share buttons includes
<?php the_permalink() ?>, it isn't evaluated. Instead, the ShareThis plug-in replaces it (using
preg_replace()) with the results of
get_permalink(). This means you can't replace the
<?php the_permalink() ?> in the HTML, and hooking the
the_permalink filter won't do any good.
Original post as follows:
<div style="text-decoration: line-through;">
ShareThis' WP plug-in uses
the_permalink() for the URLs. It doesn't add the query parameters from the current page by default (as it could cause problems with some sites), but you can create a
the_permalink filter to add the query parameters used to request the current page to the permalink URL (
the_permalink filter page includes an example on how to append the query string). Note that this will add the query parameters to ALL permalinks, which may cause other issues. If you're not a developer, you may need to get one to help you.
Another option (one that will only affect the URLs used in ShareThis links) is to edit the HTML tags from within the ShareThis settings page. Replace all occurances of
<?php the_permalink(); ?> with
<?php echo add_query_arg($_GET, get_permalink()); ?>.