• I’m trying to do a URL Redirect share to Facebook, but it looks like you’re trying to encode the url further, so that:

    <a href="https://www.facebook.com/dialog/feed?app_id=1111111111&display=popup&caption=I%20volunteered%20for%20the%20%23Fish4Commish%20campaign&link=https%3A%2F%2Fwww.fishburnforport.com%2Fvolunteer%2F&redirect_uri=https://www.facebook.com/fishburnforport" target="_blank">

    becomes

    <a href="https://www.facebook.com/dialog/feed?app_id=1111111111&display=popup&caption=Iolunteered 5.000000orhe%23Fish4Commish?ampaign&link=https0.0000000.000000www.fishburnforport.com0.000000volunteer206.000000&redirect_uri=https://www.facebook.com/fishburnforport" target="_blank">

    Unfortunately, I can’t bit.ly it, because the facebook app that my app_id actually is can’t use bit.ly as a source url.

    • This topic was modified 7 years, 8 months ago by jaydeflix.
Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    OK, there are two ways to deal with this. The template does get html encoded, so it’s not compatible with complex URLS due to the string replacements that are performed.

    There are two ways around this:

    first, and this will seem a little strange, but it works…you need to URL encode your URL (yours is only partly encoded…start with a totally unencoded plain text URL, then URL encode the whole thing), then escape each % with another %, so you will be doubling each % character in your encoded url

    second requires custom code, you would add a custom tag to the replacement tags using the ‘pdb-template_email_tag_map’ filter. It passes in an array of the tags as $key => $value You’d add your value to that array as something like ‘app_url’ => $your_app_url, then place that in the template with [app_url]

Viewing 1 replies (of 1 total)
  • The topic ‘URL Encoding on Signup Thanks Message’ is closed to new replies.