Answers.Body: <p>All redirect parameters needs to be hashed in Craft 3. If not, they're completely ignored. </p>
  
  <p>Try using: </p>
  
  <pre><code>&lt;input type="hidden" name="redirect" value="{{ '/profile' | hash }}"&gt;
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>{{ redirectInput('profile') }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-24T18:46:08.223Z
Answers.Text: That would explain why every redirect variation I attempted failed.  This works perfectly, thank you.
Answers.UserDisplayName: Alex Carpenter
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-24T18:35:03.633Z
Answers.LastActivityDate: 2018-08-24T18:35:03.633Z
Answers.UserDisplayName: CraftQuest
Body: <p>My login form  is not redirect like I want it to.  </p>
  
  <pre><code>&lt;form method="post" accept-charset="UTF-8"&gt;
  {{ csrfInput() }}
  &lt;input type="hidden" name="action" value="users/login"&gt;
  &lt;input type="hidden" name="redirect" value="profile"&gt;
  
  &lt;h3&gt;&lt;label for="loginName"&gt;Username or email&lt;/label&gt;&lt;/h3&gt;
  &lt;input id="loginName" type="text" name="loginName"
      value="{{ craft.app.user.rememberedUsername }}"&gt;
  
  &lt;h3&gt;&lt;label for="password"&gt;Password&lt;/label&gt;&lt;/h3&gt;
  &lt;input id="password" type="password" name="password"&gt;
  &lt;label&gt;
      &lt;input type="checkbox" name="rememberMe" value="1"&gt;
      Remember me
  &lt;/label&gt;
  
  &lt;input type="submit" value="Login"&gt;
  </code></pre>
  
  <p>Anybody know why?</p>
  
Tags: <craft3><form><redirect>
Title: Login form redirect not working
ThreadText: # Login form redirect not working
  
  (Asked by: username_0 on 2018-08-24)
  
  My login form is not redirect like I want it to.
  
  ```
  <form method="post" accept-charset="UTF-8">
  {{ csrfInput() }}
  <input type="hidden" name="action" value="users/login">
  <input type="hidden" name="redirect" value="profile">
  
  <h3><label for="loginName">Username or email</label></h3>
  <input id="loginName" type="text" name="loginName"
      value="{{ craft.app.user.rememberedUsername }}">
  
  <h3><label for="password">Password</label></h3>
  <input id="password" type="password" name="password">
  <label>
      <input type="checkbox" name="rememberMe" value="1">
      Remember me
  </label>
  
  <input type="submit" value="Login">
  
  ```
  
  Anybody know why?
  
  **Tags:** craft3, form, redirect
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-08-24. Score: 2 | Accepted answer
  
  All redirect parameters needs to be hashed in Craft 3. If not, they're completely ignored.
  
  Try using:
  
  ```
  <input type="hidden" name="redirect" value="{{ '/profile' | hash }}">
  
  ```
  
  Or
  
  ```
  {{ redirectInput('profile') }}
  
  ```
  
  > **Comments:**
  > **username_0**: That would explain why every redirect variation I attempted failed.  This works perfectly, thank you.  
  
  ---
  
  