# Redirect to requested url after signup

**URL:** <https://community.auth0.com/t/redirect-to-requested-url-after-signup/89910>\
**Category:** Get Help\
**Created:** [September 2, 2022, 1:46am UTC](https://community.auth0.com/t/redirect-to-requested-url-after-signup/89910 "2022-09-02T01:46:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aydin.imranov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aydin.imranov/32/39690_2.png) [@aydin.imranov](https://community.auth0.com/u/aydin.imranov)\
**Post date:** [September 2, 2022, 1:46am UTC](https://community.auth0.com/t/redirect-to-requested-url-after-signup/89910/1 "2022-09-02T01:46:23Z")

</div>

I have an application where I want users to be redirected back to the original requested url after they sign up. How can I accomplish this?

IMPORTANT NOTE: Redirection works when a user is logging in (the user is being redirected to the requested url after they log in). It just doesn’t work when a user signs up.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 30, 2022, 11:13pm UTC](https://community.auth0.com/t/redirect-to-requested-url-after-signup/89910/3 "2022-09-30T23:13:30Z")

</div>

Hi @aydin.imranov,

I apologized for the delayed response.

You should be able to use the state parameter to redirect users back to the same page they started from. The following doc goes into detail. Please let me know if you have any questions.

> **[Prevent Attacks and Redirect Users with OAuth 2.0 State Parameters](https://auth0.com/docs/secure/attack-protection/state-parameters#redirect-users)**
>
> Describes how to use the state parameter in authentication requests to help prevent CSRF attacks and restore state

---

<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:** [October 14, 2022, 11:13pm UTC](https://community.auth0.com/t/redirect-to-requested-url-after-signup/89910/4 "2022-10-14T23:13:41Z")

</div>

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