# Rule not redirecting

**URL:** <https://community.auth0.com/t/rule-not-redirecting/8932>\
**Category:** Get Help\
**Tags:** rules, bug, redirect-rules\
**Created:** [December 10, 2017, 1:00am UTC](https://community.auth0.com/t/rule-not-redirecting/8932 "2017-12-10T01:00:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zatziky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zatziky/32/10325_2.png) [@zatziky](https://community.auth0.com/u/zatziky)\
**Post date:** [December 10, 2017, 1:00am UTC](https://community.auth0.com/t/rule-not-redirecting/8932/1 "2017-12-10T01:00:01Z")

</div>

**Scenario**

1. A user is trying to sign up and clicks **SIGN UP →** in Lock widget (we use it as a js lib)

2. Request is passing via a rule that shall redirect to our server. It is 1 of the 2 rules we have:

3. The second rule just dumps the contents of `user` and `context`to [https://requestb.in](https://requestb.in):

4. The server is never reached.

**Summary**

I can see the rule worked, just the redirect didn’t happen. What can I do? I tested the request from postman and it worked. The server is waiting for GET. If at least the server was hit I would have something in my logs.

Is it because we are not using the hosted lock?

Am I missing something OR is it a bug?

---

<div class="post-metadata">

**Author:** ![zatziky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zatziky/32/10325_2.png) [@zatziky](https://community.auth0.com/u/zatziky)\
**Post date:** [December 10, 2017, 1:11am UTC](https://community.auth0.com/t/rule-not-redirecting/8932/2 "2017-12-10T01:11:17Z")

</div>

Is it not working because of “ **Redirect rules won’t work for the Password exchange: context.protocol === 'oauth2-password** ’” [source](https://auth0.com/docs/rules/current/redirect)

It seems like the case. But what can we do now? Based on email, we need to generate an ID that in turn, is stored to user on signUp. Any advice?

---

<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:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/rule-not-redirecting/8932/3 "2018-03-02T05:57:43Z")

</div>


