# Unable to redirect to returnTo URL that has been configured in Applications dashboard

**URL:** <https://community.auth0.com/t/unable-to-redirect-to-returnto-url-that-has-been-configured-in-applications-dashboard/24253>\
**Category:** Get Help\
**Created:** [April 22, 2019, 3:15am UTC](https://community.auth0.com/t/unable-to-redirect-to-returnto-url-that-has-been-configured-in-applications-dashboard/24253 "2019-04-22T03:15:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bensullivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bensullivan/32/14519_2.png) [@bensullivan](https://community.auth0.com/u/bensullivan)\
**Post date:** [April 22, 2019, 3:15am UTC](https://community.auth0.com/t/unable-to-redirect-to-returnto-url-that-has-been-configured-in-applications-dashboard/24253/1 "2019-04-22T03:15:22Z")

</div>

Hi

I’m trying to redirect to [https://staging.coreillumination.com](https://staging.coreillumination.com) from my logout URL:

[https://staging-coreillumination.au.auth0.com/v2/logout?returnTo=https://staging.coreillumination.com](https://staging-coreillumination.au.auth0.com/v2/logout?returnTo=https://staging.coreillumination.com)

The URL has been configured in the Allowed Logout URLs field in the Application settings dashbaord. The error message is:

> The “returnTo” querystring parameter “[https://staging.coreillumination.com](https://staging.coreillumination.com)” is not defined as a valid URL in “Allowed Logout URLs”. To add a new URL, please do it here: [https://manage.auth0.com/#/account/advanced](https://manage.auth0.com/#/account/advanced)
> 
> TRACKING ID: e1569a92cba647cb32dc

Could you please shed some light on what’s going on?

Many thanks

Ben

---

<div class="post-metadata">

**Author:** ![adb](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adb/32/13475_2.png) [@adb](https://community.auth0.com/u/adb)\
**Post date:** [April 22, 2019, 5:29am UTC](https://community.auth0.com/t/unable-to-redirect-to-returnto-url-that-has-been-configured-in-applications-dashboard/24253/2 "2019-04-22T05:29:53Z")

</div>

Hi @bensullivan ,  
I had the same issue .  
Then after some research, I added the allowed logout URL ( where you want the user to land if he/she has pressed the logout button.) in the Auth0-dashboard → Applications → Your Applcation → “Allowed Logout URLs” , here add the “[https://staging.coreillumination.com](https://staging.coreillumination.com/)” .

Also in Auth.js ( if you are using React-JS , otherwise the Auth0-config file )provide the logout method “returnTo” .  
Eg:  
this.auth0.logout({  
returnTo: [https://staging.coreillumination.com](https://staging.coreillumination.com/)  
});

---

<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:** [April 23, 2019, 9:59am UTC](https://community.auth0.com/t/unable-to-redirect-to-returnto-url-that-has-been-configured-in-applications-dashboard/24253/3 "2019-04-23T09:59:03Z")

</div>

Thanks a lot for sharing it with the rest of community @adb!

---

<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:** [May 8, 2019, 9:59am UTC](https://community.auth0.com/t/unable-to-redirect-to-returnto-url-that-has-been-configured-in-applications-dashboard/24253/4 "2019-05-08T09:59:08Z")

</div>

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