# Navigation tag and the home page / root

**URL:** <https://www.ruby-forum.com/t/navigation-tag-and-the-home-page-root/114304>\
**Category:** Radiant CMS\
**Created:** [September 11, 2007, 4:14am UTC](https://www.ruby-forum.com/t/navigation-tag-and-the-home-page-root/114304 "2007-09-11T04:14:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [September 11, 2007, 4:14am UTC](https://www.ruby-forum.com/t/navigation-tag-and-the-home-page-root/114304/1 "2007-09-11T04:14:14Z")

</div>

I have a site I’m working on with four main sections. The client  
wants ‘section one’ to be the ‘home page’.  
The problem: that makes ‘section one’ the parent of every page on the  
site, and causes that tab to be always highlighted.

Has anyone else come up with a solution to this problem?

I’m wondering if mod\_rewrite is the only option…

-Chris

---

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [September 11, 2007, 10:38am UTC](https://www.ruby-forum.com/t/navigation-tag-and-the-home-page-root/114304/2 "2007-09-11T10:38:54Z")

</div>

I have exactly the same problem with a site i’m working on.

I’m thinking on tweaking config/routes.rb, but i don’t know if this  
will  
work well with Radiant. Any experiences with this?

/AITOR

---

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [September 11, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/navigation-tag-and-the-home-page-root/114304/3 "2007-09-11T15:57:44Z")

</div>

You don’t have to use the \<r:navigation\> tag for everything. Instead  
you could do something like this:

\<a href="/" \<r:if\_url matches="^/$"\>class=“active”\</r:if\_url\>\>Home

That will highlight the link with the active class only if the homepage  
is shown.

Sean
