# Active link

**URL:** <https://www.ruby-forum.com/t/active-link/142194>\
**Category:** Radiant CMS\
**Created:** [July 4, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/active-link/142194 "2008-07-04T12:30:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![berri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@berri](https://www.ruby-forum.com/u/berri)\
**Post date:** [July 4, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/active-link/142194/1 "2008-07-04T12:30:56Z")

</div>

\<li class="active"\>    

If anybody visit web the content of first children of root site will  
appear. But URL is root one something like [www.web.com](http://www.web.com) and no LI element  
mentioned above use class “active”. I need the first child of root site  
use this class (as the URL was like [www.web.com/slug-of-first-child](http://www.web.com/slug-of-first-child)),

thank you
