# Redirect-rules/simple example - still valid?

**URL:** <https://community.auth0.com/t/redirect-rules-simple-example-still-valid/8399>\
**Category:** Get Help\
**Tags:** redirect-rules\
**Created:** [October 5, 2017, 10:49pm UTC](https://community.auth0.com/t/redirect-rules-simple-example-still-valid/8399 "2017-10-05T22:49:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuarpowell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joshuarpowell/32/5700_2.png) [@joshuarpowell](https://community.auth0.com/u/joshuarpowell)\
**Post date:** [October 5, 2017, 10:49pm UTC](https://community.auth0.com/t/redirect-rules-simple-example-still-valid/8399/1 "2017-10-05T22:49:01Z")

</div>

I was working through this example [rules/redirect-rules/simple at master · auth0/rules · GitHub](https://github.com/auth0/rules/tree/master/redirect-rules/simple)

I ran into some blockers and listed them here:

> <https://github.com/auth0/rules/issues/126>
>
> I'm following all the steps here: 
> https://github.com/auth0/rules/tree/master/r…edirect-rules/simple
> 
> Using the following URL:
> \`\`\`
> https://DOMAIN.auth0.com/authorize?response\_type=token&scope=openid%20profile&client\_id=CLIENT\_ID&redirect\_uri=http://jwt.io&connection=Username-Password-Authentication
> \`\`\`
> 
> I'm redirected to
> \`\`\`
> https://nasbnation.auth0.com/login/callback?state=S7dScBNwLS1HVt\_D9DqIQ5NIXtOlBtQ8
> \`\`\`
> 
> I get the following response:
> \`\`\`
> Invalid redirect URL https://wt-peter-auth0\_com-0.run.webtask.io/simple-redirect-rule-consent-form';var CONSENT\_FORM\_URL = 'https://wt-peter-auth0\_com-0.run.webtask.io/simple-redirect-rule-consent-form?auth0\_domain=nasbnation.auth0.com
> \`\`\`
> 
> My real-time Webtask Logs return: 
> \`\`\`
> 9:36:59 PM: new webtask request 1507167419882.564674
> 9:36:59 PM: finished webtask request 1507167419882.564674 with HTTP 200 in 107ms
> \`\`\`
> 
> Am I missing something? Perhaps the library has changed?

Is this example still valid?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 6, 2017, 5:26pm UTC](https://community.auth0.com/t/redirect-rules-simple-example-still-valid/8399/2 "2017-10-06T17:26:12Z")

</div>

I could not reproduce any issue and running the sample worked as expected. From the information you provided in the GH issue:

```
Invalid redirect URL https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form';var CONSENT_FORM_URL = 'https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form?auth0_domain=nasbnation.auth0.com

```

it seems that you incorrectly set the rules configuration value to be:

```
https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form';var CONSENT_FORM_URL = 'https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form

```

instead of just:

```
https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form

```

---

<div class="post-metadata">

**Author:** ![joshuarpowell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joshuarpowell/32/5700_2.png) [@joshuarpowell](https://community.auth0.com/u/joshuarpowell)\
**Post date:** [October 6, 2017, 7:45pm UTC](https://community.auth0.com/t/redirect-rules-simple-example-still-valid/8399/3 "2017-10-06T19:45:13Z")

</div>

@jmangelo thanks for pair programming 😉 …and catching the copy and paste error. fixed the key/value and it worked.

---

<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:56am UTC](https://community.auth0.com/t/redirect-rules-simple-example-still-valid/8399/4 "2018-03-02T05:56:50Z")

</div>


