# How to get redirect\_uri within Rules

**URL:** <https://community.auth0.com/t/how-to-get-redirect-uri-within-rules/53022>\
**Category:** Get Help\
**Tags:** rules, auth0\
**Created:** [November 11, 2020, 4:44am UTC](https://community.auth0.com/t/how-to-get-redirect-uri-within-rules/53022 "2020-11-11T04:44:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kubota.keisuke](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kubota.keisuke/32/25537_2.png) [@kubota.keisuke](https://community.auth0.com/u/kubota.keisuke)\
**Post date:** [November 11, 2020, 4:44am UTC](https://community.auth0.com/t/how-to-get-redirect-uri-within-rules/53022/1 "2020-11-11T04:44:29Z")

</div>

Hi,

Now I use Auth0 Rules like “redirect user if user’s app\_metadata is xxx…” .

I don’t want to apply this Rules when redirect\_uri (I mean URI which is accessed after login successful) is specify value.  
I try to add if statement like “if user’s redirect\_uri is …, callback(null, user, context)” into my Rules, but I have no idea how to get redirect\_uri in Auth0 Rules.

Can I do this? or do you have any idea, please teach me,  
thank you.

---

<div class="post-metadata">

**Author:** ![kubota.keisuke](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kubota.keisuke/32/25537_2.png) [@kubota.keisuke](https://community.auth0.com/u/kubota.keisuke)\
**Post date:** [November 16, 2020, 6:18am UTC](https://community.auth0.com/t/how-to-get-redirect-uri-within-rules/53022/2 "2020-11-16T06:18:14Z")

</div>

I solve this issue.  
I just use other Application, and specify at Rules: `DO NOTHING when user access to the Application ` .

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 16, 2020, 7:19am UTC](https://community.auth0.com/t/how-to-get-redirect-uri-within-rules/53022/3 "2020-11-16T07:19:59Z")

</div>

Thanks for sharing that with the rest of community!

---

<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:** [December 1, 2020, 7:20am UTC](https://community.auth0.com/t/how-to-get-redirect-uri-within-rules/53022/4 "2020-12-01T07:20:04Z")

</div>

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