<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>

CC BY-SA 4.0
2018-08-24T18:46:08.223Z
That would explain why every redirect variation I attempted failed.  This works perfectly, thank you.
Alex Carpenter
CC BY-SA 4.0
2018-08-24T18:35:03.633Z
2018-08-24T18:35:03.633Z
CraftQuest
<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>

<craft3><form><redirect>
Login form redirect not working
# Login form redirect not working

(Asked by: username_0 on 2018-08-24)

My login form  is not redirect like I want it to.  

{{ csrfInput() }}



Username or email


Password


    
    Remember me




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: 


Or 
{{ redirectInput('profile') }}

> **Comments:**
> **username_0**: That would explain why every redirect variation I attempted failed.  This works perfectly, thank you.  

---

