# When a callback is made, I want to redirect to the URL of an arbitrary subdirectory

**URL:** <https://community.auth0.com/t/when-a-callback-is-made-i-want-to-redirect-to-the-url-of-an-arbitrary-subdirectory/193241>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [October 16, 2025, 6:14am UTC](https://community.auth0.com/t/when-a-callback-is-made-i-want-to-redirect-to-the-url-of-an-arbitrary-subdirectory/193241 "2025-10-16T06:14:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juse](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/juse/32/72928_2.png) [@juse](https://community.auth0.com/u/juse)\
**Post date:** [October 16, 2025, 6:14am UTC](https://community.auth0.com/t/when-a-callback-is-made-i-want-to-redirect-to-the-url-of-an-arbitrary-subdirectory/193241/1 "2025-10-16T06:14:25Z")

</div>

```auto
I believe that only fixed URLs can be specified in the tenant application's "Allowed Callback URLs", but I would like to be able to specify any subdirectory (if using a regular expression, I would like to specify something like "https://example.com/*"). Is there any way to do this?
(I would like to be able to specify variable information in the subdirectory and call it.)

```

---

<div class="post-metadata">

**Author:** ![juse](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/juse/32/72928_2.png) [@juse](https://community.auth0.com/u/juse)\
**Post date:** [October 16, 2025, 11:16am UTC](https://community.auth0.com/t/when-a-callback-is-made-i-want-to-redirect-to-the-url-of-an-arbitrary-subdirectory/193241/2 "2025-10-16T11:16:54Z")

</div>

```auto
I solved it myself.
By referring to the following site, I passed the subdirectory path to Auth0, received it when it returned after the redirect, and then redirected to that subdirectory on the app side, which worked.

https://developer.auth0.com/resources/guides/spa/react/basic-authentication

```

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [October 16, 2025, 3:13pm UTC](https://community.auth0.com/t/when-a-callback-is-made-i-want-to-redirect-to-the-url-of-an-arbitrary-subdirectory/193241/3 "2025-10-16T15:13:59Z")

</div>

Hi @juse,

Welcome back to the Auth0 Community and thank you for sharing your solution with the rest of the members!

Have a good one!  
Remus

---

<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:** [October 30, 2025, 3:14pm UTC](https://community.auth0.com/t/when-a-callback-is-made-i-want-to-redirect-to-the-url-of-an-arbitrary-subdirectory/193241/4 "2025-10-30T15:14:17Z")

</div>

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