I have an controller action in my custom plugin that processes Paypal IPN requests. How it works is that you provide a URL for Paypal to send it's notification requests to and then process them and send an acknowledgement.
I'm using {{ actionUrl('plugin/action') }}
in my template to generate the URL that I provide to Paypal, but no matter what I try I can't get it to omit the script name from the URL. $omitScriptNameInUrls
set to true in config has no effect.
This is necessary, because I need to do some checking in my config file based on the URL to disable CSRF protection for only the Paypal IPN controller action, as described in this question: What's the best way to skip CSRF for plugin controllers?