# Inconsistent body class for /admin paths? (disabling top navigation)

**URL:** <https://meta.discourse.org/t/inconsistent-body-class-for-admin-paths-disabling-top-navigation/60694>\
**Category:** Product Support\
**Created:** [Abril 9, 2017, 10:44pm UTC](https://meta.discourse.org/t/inconsistent-body-class-for-admin-paths-disabling-top-navigation/60694 "2017-04-09T22:44:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [Abril 9, 2017, 10:44pm UTC](https://meta.discourse.org/t/inconsistent-body-class-for-admin-paths-disabling-top-navigation/60694/1 "2017-04-09T22:44:22Z")

</div>

I am using a simplified top navigation bar like the one that used to be on [try.discourse.org](http://try.discourse.org) based on the code provided here:

[https://meta.discourse.org/t/branding-discourse-experiment-on-try-discourse/3387/4?u=tophee](https://meta.discourse.org/t/branding-discourse-experiment-on-try-discourse/3387/4)

It works fine with one exception: when I access `/admin` directly (without having loaded the forum previously in the same tab) the top-navigation bar doesn’t load so that I see only the default discourse header like here on meta.

From what I can tell, it seems to have something to do with the body class: when navigating the forum as an admin starting from any forum-URL not including `/admin`, the body class does not include `docked` unless I scroll down to make the nav bar disappear. In contrast, when navigating the forum starting from a forum-URL including `/admin`, then the body class is fixed to `staff docked` (And the nav-bar is hidden when the class is docked).

I would expect the default class under `/admin` to be simply `staff` and `docked` to be added when scrolling, just like everywhere else. Is this is an inconsistency in the discourse core or am I misunderstanding something and it is only the CSS code above that is missing something? In the latter case: what is missing?

---

_[View the full topic](https://meta.discourse.org/t/inconsistent-body-class-for-admin-paths-disabling-top-navigation/60694)._
