# \#redirect-rules

**URL:** https://community.auth0.com/tag/redirect-rules/160.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Login Redirect /continue endpoint returns 401](https://community.auth0.com/t/login-redirect-continue-endpoint-returns-401/43308)

<div class="topic-metadata">

**Author:** [@aly.sabry](https://community.auth0.com/u/aly.sabry)\
**Replies:** 4\
**Last updated:** [March 31, 2023, 3:05pm UTC](https://community.auth0.com/t/login-redirect-continue-endpoint-returns-401/43308 "2023-03-31T15:05:58Z")

</div>

Hey, I am trying to call /continue endpoint to go back to the rule using POST because i need to pass data back to the rule. fetch(https://${auth0Domain}/continue?state=${state})\`\`. I get 401 Error. here is my

---

## [includeEmailInRedirect flag is not working for removing Email from Redirect Link](https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424)

<div class="topic-metadata">

**Author:** [@afra.n](https://community.auth0.com/u/afra.n)\
**Replies:** 3\
**Last updated:** [October 20, 2022, 1:16pm UTC](https://community.auth0.com/t/includeemailinredirect-flag-is-not-working-for-removing-email-from-redirect-link/92424 "2022-10-20T13:16:02Z")

</div>

Hello, We need to remove the email being passed in the query parameter when the user submits the password reset form. I’ve followed the instructions in this link: However, even though the PATCH request to management A…

---

## [Redirect with actions vs rules - prompt=none - access token still being available](https://community.auth0.com/t/redirect-with-actions-vs-rules-prompt-none-access-token-still-being-available/73366)

<div class="topic-metadata">

**Author:** [@veroca](https://community.auth0.com/u/veroca)\
**Replies:** 8\
**Last updated:** [December 15, 2021, 1:46pm UTC](https://community.auth0.com/t/redirect-with-actions-vs-rules-prompt-none-access-token-still-being-available/73366 "2021-12-15T13:46:18Z")

</div>

The doc for redirect for actions and rules match on some aspects and one is what happens if in the middle of a redirection, there is an /authorize call with prompt=none. According to the doc, we should get an error sayi…

---

## [/continue returning 401 - how to catch that error to redirect the user somewhere else](https://community.auth0.com/t/continue-returning-401-how-to-catch-that-error-to-redirect-the-user-somewhere-else/74366)

<div class="topic-metadata">

**Author:** [@veroca](https://community.auth0.com/u/veroca)\
**Replies:** 6\
**Last updated:** [December 14, 2021, 6:54am UTC](https://community.auth0.com/t/continue-returning-401-how-to-catch-that-error-to-redirect-the-user-somewhere-else/74366 "2021-12-14T06:54:53Z")

</div>

Hi auth0 community, I’m looking into the redirect rules in order to redirect the user to a web app right after they signed up to do the following: Verify their email address by sending an email as soon as they hit our…

---

## [Get user ID when redirect to user after sign up](https://community.auth0.com/t/get-user-id-when-redirect-to-user-after-sign-up/64515)

<div class="topic-metadata">

**Author:** [@efe\_nadir](https://community.auth0.com/u/efe_nadir)\
**Replies:** 11\
**Last updated:** [June 16, 2021, 6:12pm UTC](https://community.auth0.com/t/get-user-id-when-redirect-to-user-after-sign-up/64515 "2021-06-16T18:12:43Z")

</div>

Hello. I am using Next.js Universal Login with redirect the users while they are signing up. I use redirection because I want to get additional information about users and send them to my server to store them in my exte…

---

## [Redirect from within rule: context.request.body always empty](https://community.auth0.com/t/redirect-from-within-rule-context-request-body-always-empty/61084)

<div class="topic-metadata">

**Author:** [@35c1b1d8](https://community.auth0.com/u/35c1b1d8)\
**Replies:** 7\
**Last updated:** [April 16, 2021, 11:14am UTC](https://community.auth0.com/t/redirect-from-within-rule-context-request-body-always-empty/61084 "2021-04-16T11:14:14Z")

</div>

Hello, A few months ago I followed your guide to setup a rule that redirects users to an external page, where they are required to perform an additional identity check before being allowed to login. The rule worked fla…

---

## [How to redirect to a new page within a rule?](https://community.auth0.com/t/how-to-redirect-to-a-new-page-within-a-rule/60029)

<div class="topic-metadata">

**Author:** [@victor-wei126](https://community.auth0.com/u/victor-wei126)\
**Replies:** 5\
**Last updated:** [March 26, 2021, 7:19am UTC](https://community.auth0.com/t/how-to-redirect-to-a-new-page-within-a-rule/60029 "2021-03-26T07:19:36Z")

</div>

Here is the scenario: New users who signup will be redirected to a signup form to collect additional info. After they submit that, they are redirected to the dashboard. Currently, I have it set up so that once the user l…

---

## [Redirect from Rule - Missing id\_token in exchange response](https://community.auth0.com/t/redirect-from-rule-missing-id-token-in-exchange-response/56145)

<div class="topic-metadata">

**Author:** [@sjungers](https://community.auth0.com/u/sjungers)\
**Replies:** 5\
**Last updated:** [January 13, 2021, 9:43pm UTC](https://community.auth0.com/t/redirect-from-rule-missing-id-token-in-exchange-response/56145 "2021-01-13T21:43:12Z")

</div>

Hi, I am testing out the redirect-from-rule functionality to do a bit of housekeeping for users during login. However, I’ve hit an issue that I don’t quite understand. The rule is pretty simple for now: function (user,…

---

## [Modifying the redirect\_uri from within a redirect rule](https://community.auth0.com/t/modifying-the-redirect-uri-from-within-a-redirect-rule/42833)

<div class="topic-metadata">

**Author:** [@ilan](https://community.auth0.com/u/ilan)\
**Replies:** 5\
**Last updated:** [January 8, 2024, 8:42am UTC](https://community.auth0.com/t/modifying-the-redirect-uri-from-within-a-redirect-rule/42833 "2024-01-08T08:42:07Z")

</div>

Hi! We currently have 4 servers that are being served by Auth0 (dev, qa, staging, production). Opening our web address redirects to the Auth0 login page. The redirect URL contains, along with the Auth0 state, the follow…

---

## [Use user and context information after return callback(null, user, context)](https://community.auth0.com/t/use-user-and-context-information-after-return-callback-null-user-context/52075)

<div class="topic-metadata">

**Author:** [@tareaslenguaje2](https://community.auth0.com/u/tareaslenguaje2)\
**Replies:** 1\
**Last updated:** [October 25, 2020, 10:27am UTC](https://community.auth0.com/t/use-user-and-context-information-after-return-callback-null-user-context/52075 "2020-10-25T10:27:37Z")

</div>

Hi, I have a rule and I want to redirect like the example With this I want to use user information and context information on the page that I redirect. This rule is used on a React project and Nodejs Express Proj…

---

## [Redirect on signup to "Create Profile" Page](https://community.auth0.com/t/redirect-on-signup-to-create-profile-page/51071)

<div class="topic-metadata">

**Author:** [@devajain](https://community.auth0.com/u/devajain)\
**Replies:** 5\
**Last updated:** [October 13, 2020, 7:01pm UTC](https://community.auth0.com/t/redirect-on-signup-to-create-profile-page/51071 "2020-10-13T19:01:28Z")

</div>

Hi, I am trying to redirect users to a “Create Profile” page after their sign up. I have created a rule that checks the login count through following rule. function (user, context, callback) { var count = context.sta…

---

## [Lock v11.26.3 Unauthorized after Social Account Create redirect](https://community.auth0.com/t/lock-v11-26-3-unauthorized-after-social-account-create-redirect/50371)

<div class="topic-metadata">

**Author:** [@erockrazor](https://community.auth0.com/u/erockrazor)\
**Replies:** 5\
**Last updated:** [October 9, 2020, 7:28am UTC](https://community.auth0.com/t/lock-v11-26-3-unauthorized-after-social-account-create-redirect/50371 "2020-10-09T07:28:12Z")

</div>

Hey there, We are using Lock v11.26.3 in an Angular app to implement a styled user interface. We are required to collect additional user information when a user signs up. We are using a redirect rule to trigger this add…

---

## [Redirect to Consent form issue](https://community.auth0.com/t/redirect-to-consent-form-issue/43017)

<div class="topic-metadata">

**Author:** [@sadauther](https://community.auth0.com/u/sadauther)\
**Replies:** 1\
**Last updated:** [September 21, 2020, 3:22pm UTC](https://community.auth0.com/t/redirect-to-consent-form-issue/43017 "2020-09-21T15:22:27Z")

</div>

Hello, I am trying to implement the Track Consent flow in my application like described in GDPR: Track Consent with Lock - Auth0 Docs I am implementing Option 3, which is redirection to a Consent form after Login. The …

---

## [Changing redirect URL to a POST rather than a GET with PII in the url](https://community.auth0.com/t/changing-redirect-url-to-a-post-rather-than-a-get-with-pii-in-the-url/43779)

<div class="topic-metadata">

**Author:** [@sthakur](https://community.auth0.com/u/sthakur)\
**Replies:** 5\
**Last updated:** [June 3, 2020, 3:43pm UTC](https://community.auth0.com/t/changing-redirect-url-to-a-post-rather-than-a-get-with-pii-in-the-url/43779 "2020-06-03T15:43:12Z")

</div>

This is a duplicate of this ticket (with some more information) which did not have a resolution and was closed: Auth0 adding personally identifiable information to redirect URL We are using the Auth0 hosted password res…

---

## [Callback Issue with Redirects](https://community.auth0.com/t/callback-issue-with-redirects/30655)

<div class="topic-metadata">

**Author:** [@briannmm](https://community.auth0.com/u/briannmm)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 1:02pm UTC](https://community.auth0.com/t/callback-issue-with-redirects/30655 "2020-05-18T13:02:26Z")

</div>

I am problems deploying a site to AWS Amplify where this works fine locally and using e.g. Netlify. For SPAs is there a recommended setup for Redirects? The callback URL gets automatically changed to index.html which c…

---

## [Redirect rule with user.email as request parameter](https://community.auth0.com/t/redirect-rule-with-user-email-as-request-parameter/42636)

<div class="topic-metadata">

**Author:** [@wjans](https://community.auth0.com/u/wjans)\
**Replies:** 2\
**Last updated:** [May 12, 2020, 5:18am UTC](https://community.auth0.com/t/redirect-rule-with-user-email-as-request-parameter/42636 "2020-05-12T05:18:15Z")

</div>

I’m having an encoding issue in my redirect rule when sending the user’s email as a request parameter. I add the request parameter like this: context.redirect = { url: "https://my-domain.com/verify-email?email=" + …

---

## [State altered during rule redirect / how to set state manually?](https://community.auth0.com/t/state-altered-during-rule-redirect-how-to-set-state-manually/41264)

<div class="topic-metadata">

**Author:** [@Nico83](https://community.auth0.com/u/Nico83)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 11:52am UTC](https://community.auth0.com/t/state-altered-during-rule-redirect-how-to-set-state-manually/41264 "2020-04-17T11:52:02Z")

</div>

Hi, I have a problem using redirect rules in combination with client-generated state parameters. My client adds a state parameter to the auth request. This is altered by Auth0 during a redirect by an Auth0 rule that enf…

---

## [Redirect rule continue returns unauthorized - possible timeout?](https://community.auth0.com/t/redirect-rule-continue-returns-unauthorized-possible-timeout/41059)

<div class="topic-metadata">

**Author:** [@zblocker\_debtx](https://community.auth0.com/u/zblocker_debtx)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 1:51pm UTC](https://community.auth0.com/t/redirect-rule-continue-returns-unauthorized-possible-timeout/41059 "2020-04-15T13:51:43Z")

</div>

Similar to a few others on here, we are experiencing an issue where our redirect rule (for custom MFA) passes back to the /continue endpoint only to encounter a 401 Unauthorized response which does not redirect to our OI…

---

## [Ordering of redirect and consent](https://community.auth0.com/t/ordering-of-redirect-and-consent/38328)

<div class="topic-metadata">

**Author:** [@danielharvey](https://community.auth0.com/u/danielharvey)\
**Replies:** 3\
**Last updated:** [February 27, 2020, 6:33pm UTC](https://community.auth0.com/t/ordering-of-redirect-and-consent/38328 "2020-02-27T18:33:10Z")

</div>

Hi, Using rules, It appears like the “context.redirect” occurs before user consent is obtained (when it is required). Is there a way to control this ordering? Thanks, Daniel

---

## [API responding to a rule](https://community.auth0.com/t/api-responding-to-a-rule/12676)

<div class="topic-metadata">

**Author:** [@gregp](https://community.auth0.com/u/gregp)\
**Replies:** 1\
**Last updated:** [December 19, 2018, 4:43pm UTC](https://community.auth0.com/t/api-responding-to-a-rule/12676 "2018-12-19T16:43:31Z")

</div>

I’ve been following this guide: Redirect Users from Within Rules - Auth0 Docs to use rules so that I can register a user’s user\_Id as a foreign key to related records. In my rule, I’m checking to ensure the protocol is n…

---

## [Any ‘good way’ to fail a login and keep user on the hosted login page?](https://community.auth0.com/t/any-good-way-to-fail-a-login-and-keep-user-on-the-hosted-login-page/8990)

<div class="topic-metadata">

**Author:** [@Joe\_Tillotson](https://community.auth0.com/u/Joe_Tillotson)\
**Replies:** 2\
**Last updated:** [January 3, 2018, 6:43am UTC](https://community.auth0.com/t/any-good-way-to-fail-a-login-and-keep-user-on-the-hosted-login-page/8990 "2018-01-03T06:43:49Z")

</div>

I am trying to implement this feature without requiring our clients to do any work: “When a user attempts to login (and provides valid credentials) but they have not yet verified their email, keep them on the Hosted Log…

---

## [RedirectUrl rules (Redirect to a specific page according to user)](https://community.auth0.com/t/redirecturl-rules-redirect-to-a-specific-page-according-to-user/9001)

<div class="topic-metadata">

**Author:** [@kj1](https://community.auth0.com/u/kj1)\
**Replies:** 4\
**Last updated:** [December 19, 2017, 4:43am UTC](https://community.auth0.com/t/redirecturl-rules-redirect-to-a-specific-page-according-to-user/9001 "2017-12-19T04:43:51Z")

</div>

Great job on Auth0, it gets better and better the more I delve deeper. Here’s my question: Is it possible to redirect according to the login email address? Example: user1@example1.com gets redirected to data.example…

---

## [Rule not redirecting](https://community.auth0.com/t/rule-not-redirecting/8932)

<div class="topic-metadata">

**Author:** [@zatziky](https://community.auth0.com/u/zatziky)\
**Replies:** 1\
**Last updated:** [December 10, 2017, 1:11am UTC](https://community.auth0.com/t/rule-not-redirecting/8932 "2017-12-10T01:11:17Z")

</div>

Scenario A user is trying to sign up and clicks SIGN UP → in Lock widget (we use it as a js lib) Request is passing via a rule that shall redirect to our server. It is 1 of the 2 rules we have: function (user, con…

---

## [Get Certificate in Rules](https://community.auth0.com/t/get-certificate-in-rules/7916)

<div class="topic-metadata">

**Author:** [@lennart.querter](https://community.auth0.com/u/lennart.querter)\
**Replies:** 2\
**Last updated:** [October 20, 2017, 8:49am UTC](https://community.auth0.com/t/get-certificate-in-rules/7916 "2017-10-20T08:49:06Z")

</div>

I’m looking into redirecting a user after a social signup to an external page with a Token, validating the token using a RS256 signed certificate, adding additional user information and redirecting him to the /continue s…

---

## [Redirect Users from Rules](https://community.auth0.com/t/redirect-users-from-rules/8506)

<div class="topic-metadata">

**Author:** [@picosam](https://community.auth0.com/u/picosam)\
**Replies:** 0\
**Last updated:** [October 18, 2017, 2:51am UTC](https://community.auth0.com/t/redirect-users-from-rules/8506 "2017-10-18T02:51:26Z")

</div>

Hello, after reading this page Redirect Users from Within Rules - Auth0 Docs I’m trying to make users who signed up using Facebook enter their email addressed by redirecting them to an app-specific page where they can do…

---

## [Redirect-rules/simple example - still valid?](https://community.auth0.com/t/redirect-rules-simple-example-still-valid/8399)

<div class="topic-metadata">

**Author:** [@joshuarpowell](https://community.auth0.com/u/joshuarpowell)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 7:45pm UTC](https://community.auth0.com/t/redirect-rules-simple-example-still-valid/8399 "2017-10-06T19:45:13Z")

</div>

I was working through this example rules/redirect-rules/simple at master · auth0/rules · GitHub I ran into some blockers and listed them here: Is this example still valid?

---

## [Ensuring Email Address is Available and Verified](https://community.auth0.com/t/ensuring-email-address-is-available-and-verified/8118)

<div class="topic-metadata">

**Author:** [@picosam](https://community.auth0.com/u/picosam)\
**Replies:** 0\
**Last updated:** [September 7, 2017, 9:39pm UTC](https://community.auth0.com/t/ensuring-email-address-is-available-and-verified/8118 "2017-09-07T21:39:55Z")

</div>

Hello, When a user logs in/signs up using Facebook, it is not guaranteed that Facebook sends their email back. However, I definitely need the email address and need it to be verified. Can I write a rule to redirect the…

---

## [Redirect from rules: state value lifetime](https://community.auth0.com/t/redirect-from-rules-state-value-lifetime/7406)

<div class="topic-metadata">

**Author:** [@ben\_leen11](https://community.auth0.com/u/ben_leen11)\
**Replies:** 1\
**Last updated:** [July 10, 2017, 4:44pm UTC](https://community.auth0.com/t/redirect-from-rules-state-value-lifetime/7406 "2017-07-10T16:44:13Z")

</div>

We rely on the redirect user from rules feature: The docs here don’t show any details about the state value. Does it have an expiry time? I assume not but, do previously issued state values become invalid when a new …

---

## [Auth0 adding personally identifiable information to redirect URL](https://community.auth0.com/t/auth0-adding-personally-identifiable-information-to-redirect-url/6425)

<div class="topic-metadata">

**Author:** [@justin11](https://community.auth0.com/u/justin11)\
**Replies:** 2\
**Last updated:** [May 2, 2017, 5:16am UTC](https://community.auth0.com/t/auth0-adding-personally-identifiable-information-to-redirect-url/6425 "2017-05-02T05:16:30Z")

</div>

We are using the Auth0 hosted password reset page and after a successfult password reset the user is being redirected back to our sign-in page: See: Dashboard → Emails → Templates → Redirect To The redirect url generat…

---

## [Redirect to the last url?](https://community.auth0.com/t/redirect-to-the-last-url/6293)

<div class="topic-metadata">

**Author:** [@as3now](https://community.auth0.com/u/as3now)\
**Replies:** 1\
**Last updated:** [April 21, 2017, 12:24pm UTC](https://community.auth0.com/t/redirect-to-the-last-url/6293 "2017-04-21T12:24:12Z")

</div>

As in Auth0 docs, I can send a state value with the block dialog as here: https://auth0.com/docs/libraries/lock/v10/sending-authentication-parameters but how would I read it back at rails? at callback? I found this do…

[Next page](https://community.auth0.com/tag/redirect-rules/160.md?match_all_tags=true&page=1&tags%5B%5D=redirect-rules)
