# Auth0 Allowed Logout URLs only working with 1st URL in the list

**URL:** <https://community.auth0.com/t/auth0-allowed-logout-urls-only-working-with-1st-url-in-the-list/113002>\
**Category:** Get Help\
**Tags:** auth0-spa-js, sdks-quickstarts\
**Created:** [August 7, 2023, 5:48am UTC](https://community.auth0.com/t/auth0-allowed-logout-urls-only-working-with-1st-url-in-the-list/113002 "2023-08-07T05:48:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbdYashar07](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@AbdYashar07](https://community.auth0.com/u/AbdYashar07)\
**Post date:** [August 7, 2023, 5:48am UTC](https://community.auth0.com/t/auth0-allowed-logout-urls-only-working-with-1st-url-in-the-list/113002/1 "2023-08-07T05:48:59Z")

</div>

Hi all,

Currently I’ve configured a couple of url’s in the **Allowed Logout Url’s** in a Auth0 application.

But when the user is logging out only taking the first URL which is mentioned in the **Allowed Logout URLs** though I’ve mentioned returnTo parameter with the exact URL.

Is there anything I’m configuring wrongly?

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [September 5, 2023, 9:29am UTC](https://community.auth0.com/t/auth0-allowed-logout-urls-only-working-with-1st-url-in-the-list/113002/2 "2023-09-05T09:29:48Z")

</div>

Hey there @AbdYashar07 !  
Apologies for the late replay on that.

Logout URLs can be set on 2 different layers in the Auth0 dashboard (tenant level and a single app level).

When calling logout with auth0-react-js you can specify two properties as described [here](https://auth0.github.io/auth0-spa-js/interfaces/LogoutUrlOptions.html). Does your logout request includes both the clientID and the returnTo parameter, like below?

`https://{yourDomain}/v2/logout?returnTo=http%3A%2F%2Fwww.example.com&client_id={clientId}`

Please note:

> If the `client_id` parameter is included, the `returnTo` URL that is provided must be listed in the Application’s “Allowed Logout URLs” in the Auth0 dashboard. However, if the `client_id` parameter is not included, the `returnTo` URL must be listed in the “Allowed Logout URLs” at the account level in the Auth0 dashboard.

More info on registering logout URLs in Auth0:

> **[Redirect Users with Alternative Logout](https://auth0.com/docs/authenticate/login/logout/redirect-users-after-logout)**
>
> Describes how to redirect users with the legacy logout endpoint.

Thanks!

---

<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:** [September 20, 2023, 10:54am UTC](https://community.auth0.com/t/auth0-allowed-logout-urls-only-working-with-1st-url-in-the-list/113002/5 "2023-09-20T10:54:48Z")

</div>

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