I am using a simplified top navigation bar like the one that used to be on try.discourse.org based on the code provided here:
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
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?