# What is the recommended approach to accessing admin dashboard from gatsby based theme

**URL:** <https://forum.ghost.org/t/what-is-the-recommended-approach-to-accessing-admin-dashboard-from-gatsby-based-theme/11432>\
**Category:** Developer help\
**Created:** [January 16, 2020, 6:49pm UTC](https://forum.ghost.org/t/what-is-the-recommended-approach-to-accessing-admin-dashboard-from-gatsby-based-theme/11432 "2020-01-16T18:49:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxkoretskyi](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxkoretskyi](https://forum.ghost.org/u/maxkoretskyi)\
**Post date:** [January 16, 2020, 6:49pm UTC](https://forum.ghost.org/t/what-is-the-recommended-approach-to-accessing-admin-dashboard-from-gatsby-based-theme/11432/1 "2020-01-16T18:49:33Z")

</div>

I’m setting up Ghost 3 with gatsby-based theme. With handlebars theme, we could navigate to `/ghost` and have access to the admin dashboard. What is the recommended approach to accessing admin dashboard from gatsby based theme?

As I understand, I somehow need to make admin available on some URL, say, `admin.mydomain.com`. Ideally, I wouldn’t want to add `/ghost` to the URL, I’d want the URL to directly access admin UI. [This solution still requires adding `/ghost` part.](https://forum.ghost.org/t/cant-access-ghost-admin/10627/3). Any way to implement direct access to admin UI on `admin.mydomain.com` without adding `/ghost` part to the URL?

Once I do that, I could them implement a redirect inside gasby app from `gatsbydomain.com/ghost` to the `admin.mydomain.com` where my admin is available. Is it how it should be done?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [January 17, 2020, 5:20am UTC](https://forum.ghost.org/t/what-is-the-recommended-approach-to-accessing-admin-dashboard-from-gatsby-based-theme/11432/2 "2020-01-17T05:20:10Z")

</div>

> [@maxkoretskyi](#):
>
> Any way to implement direct access to admin UI on `admin.mydomain.com` without adding `/ghost` part to the URL?

As of now, the `/ghost` path is tightly coupled to the functionality of both the API and the admin interface. (so, unfortunately not)

> [@maxkoretskyi](#):
>
> Once I do that, I could them implement a redirect inside gasby app from `gatsbydomain.com/ghost` to the `admin.mydomain.com` where my admin is available. Is it how it should be done?

If you’re using a service like Netlify, another option is to use the redirects file. This offloads the redirection to a server instead of a client :)

---

<div class="post-metadata">

**Author:** ![maxkoretskyi](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxkoretskyi](https://forum.ghost.org/u/maxkoretskyi)\
**Post date:** [January 17, 2020, 11:27am UTC](https://forum.ghost.org/t/what-is-the-recommended-approach-to-accessing-admin-dashboard-from-gatsby-based-theme/11432/3 "2020-01-17T11:27:51Z")

</div>

Awesome, thanks for your help!
