When my CiviContribute donation pages send out email receipts, I would like the emails to include the URL of the source page (i.e., the WordPress page that contains the shortcode of the CiviCRM donation page). Is there a Smarty variable that has that source (or "referrer") page URL? Or is there another way to accomplish this? (Seems like this would be a good variable to have.)
I'm on WordPress 5.23 and CiviCRM 5.13.
I've added the {debug}
token to the HTML email template to inspect the available variables and didn't find anything quite suitable. There is a variable called $printerFriendly
that seems to have the page URL but with extra query string parameters. Is there a Smarty feature to discard the query string and retain just the page URL?
(Side note in case it helps someone: if you include {debug}
in both the HTML email template and the plain text email template, the contribution page will fail with a "too many redirects" error, and the contribution does not get recorded!)