# Highlight current doc topic in the sidebar identified by their slugs in the index

**URL:** <https://meta.discourse.org/t/highlight-current-doc-topic-in-the-sidebar-identified-by-their-slugs-in-the-index/392857>\
**Category:** Feature\
**Tags:** doc-categories\
**Created:** [January 6, 2026, 5:17pm UTC](https://meta.discourse.org/t/highlight-current-doc-topic-in-the-sidebar-identified-by-their-slugs-in-the-index/392857 "2026-01-06T17:17:10Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [January 9, 2026, 4:15pm UTC](https://meta.discourse.org/t/highlight-current-doc-topic-in-the-sidebar-identified-by-their-slugs-in-the-index/392857/9 "2026-01-09T16:15:07Z")

</div>

> [@Neil\_Evans](#):
>
> so I can maintain the same TOC index across environments (DEV/PROD).

Why not just restore the prod database to dev so you’ll have the same ids? There must be something I don’t understand

---

_[View the full topic](https://meta.discourse.org/t/highlight-current-doc-topic-in-the-sidebar-identified-by-their-slugs-in-the-index/392857)._
