• Hi,
    I’m trying to share a page that receives some get vars.
    So to share, I need to pass the link always with the get vars / querystring in the url.

    In order to make it work, I made a custom shortcode like this:

    function prisma_shortcode_social(){
    $referral_url=”https://”.$_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI];
    //echo $referral_url;
    return do_shortcode(‘[TheChamp-Sharing url=”‘.$referral_url.'”]’);
    }
    add_shortcode( ‘prisma_share’, ‘prisma_shortcode_social’ );

    It works well for Facebook, Twitter… but not for the “Copy Link” Button.
    The copy link button only copies the url without params.

    You can see on the generated code, that the url is correctly passed to the shortcode with params, but I don’t know why, the Copy link button just omits it and only copyes the url without params. How can we do that Copy link copies the full url?

    The page I need help with: [log in to see the link]

The topic ‘Copy link without params’ is closed to new replies.