# Redirect in the pre-registration action flow

**URL:** <https://community.auth0.com/t/redirect-in-the-pre-registration-action-flow/115200>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [September 1, 2023, 9:43am UTC](https://community.auth0.com/t/redirect-in-the-pre-registration-action-flow/115200 "2023-09-01T09:43:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gualtiero.testa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gualtiero.testa/32/50455_2.png) [@gualtiero.testa](https://community.auth0.com/u/gualtiero.testa)\
**Post date:** [September 1, 2023, 9:43am UTC](https://community.auth0.com/t/redirect-in-the-pre-registration-action-flow/115200/1 "2023-09-01T09:43:31Z")

</div>

Hi,  
in the Login flow it is possible to redirect user to an external application for example to collect additional user data. See [Redirect with Actions](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/redirect-with-actions)

Is it possible to do the same in the pre-registration flow?

The pre-registration flow api object seems missing of the redirect support.

More in general, how I can collect additional user data during the registration flow?

Thanks,

Gualtiero

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 1, 2023, 7:12pm UTC](https://community.auth0.com/t/redirect-in-the-pre-registration-action-flow/115200/3 "2023-09-01T19:12:06Z")

</div>

Hi @gualtiero.testa,

Welcome to the Auth0 Community!

Unfortunately, you cannot redirect in a Pre-User Registration Action, as you have found.

Only the Post-Login Action can redirect users. Take note that whenever a user signs up, they are automatically logged in. As a workaround, you could check if the user’s login count equals 1, which indicates a new user logging in, and redirect as needed.

```auto
exports.onExecutePostLogin = async (event, api) => {
  if (event.stats.logins_count !== 1) {
    return;
  }
  api.redirect.sendUserTo("https://my-app.exampleco.com");
};

exports.onContinuePostLogin = async (event, api) => {
}

```

Alternatively, you could implement the `additionalSignUpFields` in your Universal Login page, but this will require you to switch from the New Universal Login experience to the Classic Universal Login experience.

See the following resources:

- [How to configure additional signup fields on the Universal Login Page](https://community.auth0.com/t/how-to-configure-additional-signup-fields-on-the-universal-login-page/82448)
- [New Universal Login vs. Classic Universal Login](https://auth0.com/docs/authenticate/login/auth0-universal-login/new-universal-login-vs-classic-universal-login)

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 15, 2023, 7:12pm UTC](https://community.auth0.com/t/redirect-in-the-pre-registration-action-flow/115200/4 "2023-09-15T19:12:41Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
