Viewing 7 replies - 1 through 7 (of 7 total)
  • Srijith V

    (@srijithv)

    That’s weird! Can I have a link to the site? You can send it to srijith[at]addthis.com or share it here.

    Thread Starter Cathryn999

    (@cathryn999)

    Hey there. I’ve had to remove it from the production site but you can see it on the dev site here:
    darwinholidayapartments.biz/dhadev/accommodation/property?pid=5764

    – I’ve just installed the standard plug-in, obviously need to muck around with location and so on but before I do that I need to know it will pass the full URL first. Thanks, let me know how you go.
    Cathryn.

    Thread Starter Cathryn999

    (@cathryn999)

    oh – ignore the social share icons at the top of the page – they’re going! – it’s the addthis icons just above the property name that I’m wanting to get working. cheers.

    Srijith V

    (@srijithv)

    Cathryn: Spotted it! Thanks for reporting it. Let me check whether it’s an issue with our plugin or conflict with some other plugins/themes installed.

    Thread Starter Cathryn999

    (@cathryn999)

    Yay! Keep me posted. Can give you login to dev site if you want to check other plugins.

    Srijith V

    (@srijithv)

    Of course Cathryn! Would be helpful if you can send the dev site details to srijith[AT]addthis.com.

    Srijith V

    (@srijithv)

    Hey Cathryn!

    Finally got the issue reason. The parameter pid is a custom added one by the template you are using. AddThis uses get_permalink() function of wordpress to get the url to be shared and get_permalink() misses the user added parameters. The quick fix is to change the code a bit to stick your added parameters to the get_permalink() output. I can provide the steps here.

    In function (File: addthis_social_widget.php, in wp-content/plugins/addthis)

    function addthis_display_social_widget($content, $filtered = true, $below_excerpt = false)

    on line# 1327,

    Current
    =================================================

    $url = get_permalink();

    =================================================

    Change to
    =================================================

    $query_string_list = $_GET;
    if (array_key_exists('attest', $query_string_list)) {
        unset($query_string_list['attest']);
    }
    $url = add_query_arg( $query_string_list, get_permalink());

    =================================================

    Try it and let me know if it worked.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘AddThis truncates URL’ is closed to new replies.