Get email address from registration form I have a user registration form setup to redirect to another template on submit. That template then includes the following:

{% set email = craft.app.request.getBodyParam('email') -%}
&lt;p&gt;Thank you for registering. An email has been sent to {{ email }}…


Why does getBodyParam('email') always return empty here? getBodyParams() also returns an empty array.
Why does getBodyParam('email') always return empty here?


Because that method is looking for data in POST, and after the redirect has happened, it's a new request, and POST data is lost.

If you want to do what you're looking for, the easiest way is to pass the email address along as a query string param (i.e. ?email=foo@bar.com), then the template can do craft.app.request.getQueryParam('email').