facebook share widget issue with dynamic pages

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 28, 2019   (RSS)

By daniel - March 27, 2019

Hi Willydoit,

Those codes (%3A, %2F) are generated by the urlencode() function, so I believe you should just be able to call the thisPageUrl() function by itself to get the URL you want:

<?php echo thisPageUrl(); ?>

It is good practice to use urlencode() on any dynamic text you want to include in a URL, however, with how the Facebook script is using the value, it isn't necessary in this case.

Let me know if that does the trick!

Thanks,

Daniel
PHP Programmer
interactivetools.com

By willydoit - March 28, 2019

Thanks Daniel, that did the trick