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 : https://gochattervideos.com/blog/post.php?s=2016-10-12-are-you-ready-for-christmas its shares: https://gochattervideos.com/blog/post.php

<a class="facebook" target="_blank" href="https://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

  • 5 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.