Answers.Body: <p>To tell Craft where to redirect the user after successfully submitting the form, you can add a hidden input named <code>redirect</code>.</p>
  <p>The best way to do this is by using the <a href="https://craftcms.com/docs/3.x/dev/functions.html#redirectinput" rel="nofollow noreferrer"><code>redirectInput()</code></a> Twig function, i.e.</p>
  <pre><code>&lt;form method=&quot;post&quot; accept-charset=&quot;UTF-8&quot;&gt;
  
    {{ csrfInput() }}
    {{ actionInput('users/send-password-reset-email') }}
  
    {# After submitting the form, redirect to https://example.com/go/here #}
    {{ redirectInput('go/here') }}
  
    ...
  
  &lt;/form&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-17T20:23:28.530Z
Answers.LastActivityDate: 2022-11-17T20:23:28.530Z
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Body: <p>I've created a password reset template from here <a href="https://craftcms.com/knowledge-base/front-end-user-accounts#reset-password-forms" rel="nofollow noreferrer">https://craftcms.com/knowledge-base/front-end-user-accounts#reset-password-forms</a>. After submitting this form it redirects to the homepage. Is it possible, to set here own redirect? In base case, to the same page, where would be written something like &quot;Check your email for instructions&quot;.</p>
  
Tags: <frontend-form>
Title: Set redirect after submitting password reset form for front-end user accounts
ThreadText: # Set redirect after submitting password reset form for front-end user accounts
  
  (Asked by: username_0 on 2022-11-17)
  
  I've created a password reset template from here <https://craftcms.com/knowledge-base/front-end-user-accounts#reset-password-forms>. After submitting this form it redirects to the homepage. Is it possible, to set here own redirect? In base case, to the same page, where would be written something like "Check your email for instructions".
  
  **Tags:** frontend-form
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-11-17. Score: 2 | Accepted answer
  
  To tell Craft where to redirect the user after successfully submitting the form, you can add a hidden input named `redirect`.
  
  The best way to do this is by using the [`redirectInput()`](https://craftcms.com/docs/3.x/dev/functions.html#redirectinput) Twig function, i.e.
  
  ```
  <form method="post" accept-charset="UTF-8">
  
    {{ csrfInput() }}
    {{ actionInput('users/send-password-reset-email') }}
  
    {# After submitting the form, redirect to https://example.com/go/here #}
    {{ redirectInput('go/here') }}
  
    ...
  
  </form>
  
  ```
  
  
  ---
  
  