# Is there a way to support dynamic URLs and URLs other than index routes in Allowed Logout URLs when user is logged out?

**URL:** <https://community.auth0.com/t/is-there-a-way-to-support-dynamic-urls-and-urls-other-than-index-routes-in-allowed-logout-urls-when-user-is-logged-out/96235>\
**Category:** Get Help\
**Tags:** federated-logout, connections\
**Created:** [December 12, 2022, 8:19am UTC](https://community.auth0.com/t/is-there-a-way-to-support-dynamic-urls-and-urls-other-than-index-routes-in-allowed-logout-urls-when-user-is-logged-out/96235 "2022-12-12T08:19:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![som-matrix](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/som-matrix/32/41878_2.png) [@som-matrix](https://community.auth0.com/u/som-matrix)\
**Post date:** [December 12, 2022, 8:19am UTC](https://community.auth0.com/t/is-there-a-way-to-support-dynamic-urls-and-urls-other-than-index-routes-in-allowed-logout-urls-when-user-is-logged-out/96235/1 "2022-12-12T08:19:48Z")

</div>

For eg: I am in a page called `localhost:8000/rooms?queryParams...` and i am performing the login functionality there by using the `loginWithPopup` method. So after successful authentication , user is logged in and stay on the same page and we get the user info.

Now comes the `logout` functionality , for that we need to invoke this method and pass the `federated` option to `true` so that when user logs out and login again they will see the login popup again.

Here on logout , it redirects to the index routes mentioned in `Allowed Logout URLs` , so is there a option where i can pass a page location like above which has a `pathname` and query parameters which are dynamic ?

In dashboard it is mentioned we can pass wildcards like http://_.[example.com](http://example.com/).  
Is there a option to pass like this http://_.[example.com/\*](http://example.com/*) which also take the query params ?

Like  
 ![Screenshot 2022-12-12 at 1.34.38 PM](https://global.discourse-cdn.com/auth0/original/3X/1/1/11727eaebd9448877ff11d0fbf7e0480cb7eea70.jpeg)

---

<div class="post-metadata">

**Author:** ![david\_wisecarver](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david_wisecarver/32/37472_2.png) [@david\_wisecarver](https://community.auth0.com/u/david_wisecarver)\
**Post date:** [December 15, 2022, 11:51pm UTC](https://community.auth0.com/t/is-there-a-way-to-support-dynamic-urls-and-urls-other-than-index-routes-in-allowed-logout-urls-when-user-is-logged-out/96235/3 "2022-12-15T23:51:51Z")

</div>

Hi @som-matrix,

Welcome to Auth0 Community!

Unfortunately wildcards are only allowed for the subdomain and not the path. The suggested way to handle multiple routes is to use a single callback route (e.g. /callback), end redirect to the desired route from within your application. Here is another community post that covers this in some more detail: [Allowed Callback URLs ending with a wildcard - #2 by prashantT](https://community.auth0.com/t/allowed-callback-urls-ending-with-a-wildcard/7626/2)

---

<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 29, 2022, 11:52pm UTC](https://community.auth0.com/t/is-there-a-way-to-support-dynamic-urls-and-urls-other-than-index-routes-in-allowed-logout-urls-when-user-is-logged-out/96235/4 "2022-12-29T23:52:04Z")

</div>

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