Support » Plugin: Share Buttons by AddThis » Adding query string to url

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author addthis_matt

    (@addthis_matt)

    Hi there,

    The addthis_share.url_transforms variable should still work. Do you have an example page where I can investigate the issue further?

    Thanks,
    Matt
    AddThis Support

    Is there somewhere I can email this? I’d rather not post it online if possible.. You can email me at ag113 @ hotmail.com if that is easier for you

    thanks!

    wait.. just noticed I can edit this post.. here’s the link, I’ll delete it when we’re done 🙂

    ((link removed))

    Plugin Author addthis_matt

    (@addthis_matt)

    It looks like the script you added to the template is appearing before the WordPress plugin adds a second instance of addthis_share, which is therefore overriding the instance of addthis_share you’ve added.

    The easiest way to get around that would be to add the addthis_share JSON directly into the Advanced Settings tab within the AddThis Sharing Buttons plugin.

    Once you’re on the Advanced Settings tab, look for:
    “addthis_share values (json format)”

    View post on imgur.com

    You’d need to add the json with quotes, like this:
    { “url_transforms” : { “add”: { “list”: “123” } } }

    Once you save the changes, the URL parameters should be added to the shares.

    ahhh.. ok that actually leads me to different solution which works for me

    I actually have 2 different templates that I need to have a specific url, but a different specific url

    so in the footer after wp_footer() I’m checking for the page id, and then putting the correct version of the script above

    thanks!

    Plugin Author addthis_matt

    (@addthis_matt)

    No problem at all! Let us know if you have any further questions and we’ll be glad to help.

    actually looks like it isn’t quite solved…

    The facebook share is ignoring the new url and just using the one without the query string.

    I’ve made sure the canonical link for the page is the version with the query string (I’ve seen this be an issue before) but that didn’t help either.

    I’ve been playing around with filtering out some of the open graph meta that’s inserted into the head via SEO Yeost.

    this might have fixed the problem but I can’t be sure yet. One of the 2 pages seems to be functioning properly with the Facebook link but the other doesn’t which might just been Facebook hasn’t quite caught up yet with the changes that were made.

    Plugin Author addthis_matt

    (@addthis_matt)

    Hi there,

    It looks like the og:url was previously set to a different URL and Facebook had it cached. Now that the og:url meta tag is removed, I performed a new “fetch” using Facebook’s Debugger, which now results in the correct URL being shared. If you need to do this for any other URLs, here’s the link to Facebook’s Debugger:

    https://developers.facebook.com/tools/debug/og/object/

    yeah, that’s the stuff! Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Adding query string to url’ is closed to new replies.