# Custom domain redirects to default org '-admin' url instead of staying custom url when traversing from 'My Applications' to 'Admin'

**URL:** <https://devforum.okta.com/t/custom-domain-redirects-to-default-org-admin-url-instead-of-staying-custom-url-when-traversing-from-my-applications-to-admin/6499>\
**Category:** Questions\
**Created:** [October 4, 2019, 10:08pm UTC](https://devforum.okta.com/t/custom-domain-redirects-to-default-org-admin-url-instead-of-staying-custom-url-when-traversing-from-my-applications-to-admin/6499 "2019-10-04T22:08:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![klele](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@klele](https://devforum.okta.com/u/klele)\
**Post date:** [October 4, 2019, 10:08pm UTC](https://devforum.okta.com/t/custom-domain-redirects-to-default-org-admin-url-instead-of-staying-custom-url-when-traversing-from-my-applications-to-admin/6499/1 "2019-10-04T22:08:00Z")

</div>

1. Custom domain setup complete:  
 ![image](https://global.discourse-cdn.com/oktadev/original/2X/3/3ac11f3cf4ffc5a32e110392e6171e526de528a4.png)

2. Traverse to ‘My Applications’ via custom domain just fine:  

3. Now when I click on ‘Admin’ to traverse to admin console, I get redirected to my default org ‘-admin’ url ([dev-775665-admin.oktapreview.com](http://dev-775665-admin.oktapreview.com)) instead of staying on my custom domain url ([myokta.sonicstartsvcs.com](http://myokta.sonicstartsvcs.com)):  

I have followed the setup instructions to the T, so wondering if there is something undocumented that I am missing? Like maybe needing to point my custom domain specifically at the ‘-admin’ url?

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [October 7, 2019, 3:01am UTC](https://devforum.okta.com/t/custom-domain-redirects-to-default-org-admin-url-instead-of-staying-custom-url-when-traversing-from-my-applications-to-admin/6499/2 "2019-10-07T03:01:31Z")

</div>

Hi @klele

Custom domain feature was designed for the end-user subdomain (eg. [dev-775665.oktapreview.com](http://dev-775665.oktapreview.com)) to offer a more customized experience, for example for API endpoints or authentication page.

The admin subdomain (eg. [dev-775665-admin.oktapreview.com](http://dev-775665-admin.oktapreview.com)) is not targeted through this feature and, as such, it remains unchanged.

If you would like to have also the admin subdomain changed, please feel free to suggest this on our Ideas platform available at [support.okta.com](http://support.okta.com) \>\> Product \>\> Ideas.

---

<div class="post-metadata">

**Author:** ![bennumo](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@bennumo](https://devforum.okta.com/u/bennumo)\
**Post date:** [December 20, 2019, 3:20pm UTC](https://devforum.okta.com/t/custom-domain-redirects-to-default-org-admin-url-instead-of-staying-custom-url-when-traversing-from-my-applications-to-admin/6499/3 "2019-12-20T15:20:24Z")

</div>

Well, at the very least, leaving the -admin site by using the My Apps link should take you back to the custom url, not the Okta url. Why? Because it forces me to login again (when I’m already logged in via the custom URL) and is kinda lazy in terms of implementation.

---

<div class="post-metadata">

**Author:** ![Angelo](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Angelo](https://devforum.okta.com/u/Angelo)\
**Post date:** [May 14, 2020, 11:11pm UTC](https://devforum.okta.com/t/custom-domain-redirects-to-default-org-admin-url-instead-of-staying-custom-url-when-traversing-from-my-applications-to-admin/6499/4 "2020-05-14T23:11:01Z")

</div>

Actually this is super annoying, Admins are also most of the time end-users. And it forcing to re-login to the same thing from which you coming already logged in. There should be an option to customize that by custom domain of that ORG and even better to customize that as whole for example we have lot of org2org apps in okta accounts and would be awesome to redirect all those links to one Okta Spoke dashboard even in different Okta domain.

+1

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 24, 2024, 7:26pm UTC](https://devforum.okta.com/t/custom-domain-redirects-to-default-org-admin-url-instead-of-staying-custom-url-when-traversing-from-my-applications-to-admin/6499/5 "2024-01-24T19:26:25Z")

</div>

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