# Action Flow Redirect

**URL:** <https://community.auth0.com/t/action-flow-redirect/99812>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [February 6, 2023, 5:39pm UTC](https://community.auth0.com/t/action-flow-redirect/99812 "2023-02-06T17:39:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimseiwert](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jimseiwert/32/13058_2.png) [@jimseiwert](https://community.auth0.com/u/jimseiwert)\
**Post date:** [February 6, 2023, 5:39pm UTC](https://community.auth0.com/t/action-flow-redirect/99812/1 "2023-02-06T17:39:23Z")

</div>

Using the action flow api.redirect.sendto is there a way in the action flow to get the state parameter that the continue endpoint will need?

---

<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:** [February 6, 2023, 9:23pm UTC](https://community.auth0.com/t/action-flow-redirect/99812/3 "2023-02-06T21:23:06Z")

</div>

Hi @jimseiwert,

Thanks for reaching out to the Auth0 Community!

> [@jimseiwert](#):
>
> Using the action flow api.redirect.sendto is there a way in the action flow to get the state parameter that the continue endpoint will need?

Yes, but this does not happen inside your Post-Login Action script.

Instead, you will need to extract the `state` parameter that was appended to your redirect URL and send it back to Auth0 (`/continue`) to resume the authentication transaction.

In other words, when the user gets sent to the redirect URL, a state parameter is appended to it. For example, if the redirect URL is `https://example.com/foo` then when the user reaches that URL, the browser will show `https://example.com/foo?state=abc123`.

At that point, you will need to extract the `state` value and append it back to the `/continue` endpoint. For example: `https://{yourDomain}/continue?state=abc123`.

Reference: [Redirect with Actions](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/redirect-with-actions#resume-the-authentication-flow)

I hope the explanation was clear!

Please let me know if you have any additional questions.

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:** [February 20, 2023, 9:23pm UTC](https://community.auth0.com/t/action-flow-redirect/99812/4 "2023-02-20T21:23:40Z")

</div>

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