# Setting active class on nav-pills \> li for about, faqs, tos

**URL:** <https://meta.discourse.org/t/setting-active-class-on-nav-pills-li-for-about-faqs-tos/138401>\
**Category:** Development\
**Created:** [January 12, 2020, 10:08pm UTC](https://meta.discourse.org/t/setting-active-class-on-nav-pills-li-for-about-faqs-tos/138401 "2020-01-12T22:08:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [January 13, 2020, 12:30am UTC](https://meta.discourse.org/t/setting-active-class-on-nav-pills-li-for-about-faqs-tos/138401/2 "2020-01-13T00:30:23Z")

</div>

I am not sure we ever supported an “active” class on the LI elements on nav-pills. I am not against adding this support for themes cause it seems like it could be useful. That said a bunch of stuff would need refactoring.

@techAPJ I think you moved this around, is there a reason for this “active” class? Seems like an error to me?

> <https://github.com/discourse/discourse/blob/d8412f409a9b98e82b269ed058bf05f88e34e886/app/assets/javascripts/discourse/templates/about.hbs#L6-L6>

As to the bigger discussion of adding “active” class to LIs based on route, will leave it to @eviltrout and @awesomerobot. At the moment we use “link-to” which only gives us automatic support for route based classes on the A element. We would likely need a new component here.

---

_[View the full topic](https://meta.discourse.org/t/setting-active-class-on-nav-pills-li-for-about-faqs-tos/138401)._
