<p>I believe you could use Freeform's <a href="https://docs.solspace.com/craft/freeform/v3/overview/element-connections.html#craft-users" rel="nofollow noreferrer">Element Connections</a> to create a user registration form. In the form's <a href="https://docs.solspace.com/craft/freeform/v3/overview/forms-composer.html#form-settings" rel="nofollow noreferrer">Return URL setting</a> it looks like there's some options to create some logic with {{ submission.id }}.</p>

CC BY-SA 4.0
2019-06-27T20:24:49.620Z
2019-06-27T20:24:49.620Z
Simon Kuran
<p>i'd like to alter the after login redirect URL based on a User custom field, i encountered <a href="https://craftcms.stackexchange.com/questions/19189/redirecting-after-login-based-on-user-group">this</a> but looks like it's not applicable to Craft 3.</p>

<p>I could re-write the whole UsersController class on a custom plugin but maybe there's another way?</p>

<redirect><login>
Craft 3 Redirect after login based on User field
# Craft 3 Redirect after login based on User field

(Asked by: username_0 on 2019-06-27)

i'd like to alter the after login redirect URL based on a User custom field, i encountered [this](https://craftcms.stackexchange.com/questions/19189/redirecting-after-login-based-on-user-group) but looks like it's not applicable to Craft 3.

I could re-write the whole UsersController class on a custom plugin but maybe there's another way?

**Tags:** redirect, login

---

## 1 answers

### Answer by username_1 on 2019-06-27. Score: 1

I believe you could use Freeform's [Element Connections](https://docs.solspace.com/craft/freeform/v3/overview/element-connections.html#craft-users) to create a user registration form. In the form's [Return URL setting](https://docs.solspace.com/craft/freeform/v3/overview/forms-composer.html#form-settings) it looks like there's some options to create some logic with {{ submission.id }}.


---

