We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question, Configuration

sharing URL

I am trying to get a url to link to a Facebook link for quick sharing, however it not posting the complete url. rather than share for example : http://gochattervideos.com/blog/post.php?s=2016-10-12-are-you-ready-for-christmas its shares: http://gochattervideos.com/blog/post.php

<a class="facebook" target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php perch_page_url(array (
                'include_domain' => true,
                    )); ?>">
                <span class="icon-facebook" aria-hidden="true">
            </a>
Timothy Rackham

Timothy Rackham 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_page_url() doesn't include any query string arguments, so you'll need to add those. You can use perch_get('s') to get the value of s from the query string.