# Question about navigation behavior

**URL:** <https://www.ruby-forum.com/t/question-about-navigation-behavior/67430>\
**Category:** Radiant CMS\
**Created:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/question-about-navigation-behavior/67430 "2006-09-04T14:43:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rane](https://www.ruby-forum.com/u/rane)\
**Post date:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/question-about-navigation-behavior/67430/1 "2006-09-04T14:43:39Z")

</div>

I’m using this code as navigation of my site but there’s a slight flaw.  
For example, when the page is one of the children of page ruby, r:here  
won’t be active. Any ideas?

- 
- 
-

---

<div class="post-metadata">

**Author:** ![rane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rane](https://www.ruby-forum.com/u/rane)\
**Post date:** [September 4, 2006, 3:21pm UTC](https://www.ruby-forum.com/t/question-about-navigation-behavior/67430/2 "2006-09-04T15:21:22Z")

</div>

Raine Virta wrote:

> I’m using this code as navigation of my site but there’s a slight flaw.  
> For example, when the page is one of the children of page ruby, r:here  
> won’t be active. Any ideas?

Selected will be active.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![rane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rane](https://www.ruby-forum.com/u/rane)\
**Post date:** [September 4, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/question-about-navigation-behavior/67430/3 "2006-09-04T17:01:41Z")

</div>

John W. Long wrote:

> John L.  
> [http://wiseheartdesign.com](http://wiseheartdesign.com)
> 
> * * *
> 
> Radiant mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

It works, partially.  
My index page is / and other pages are like /page/, so with current  
settings index page’s and other page’s links are both selected when user  
is in other page. Possible solution could be having /home/ or something  
like that as default page, but how do I do that?

---

<div class="post-metadata">

**Author:** ![rane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rane](https://www.ruby-forum.com/u/rane)\
**Post date:** [September 4, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/question-about-navigation-behavior/67430/4 "2006-09-04T17:11:41Z")

</div>

Raine Virta wrote:

> It works, partially.  
> My index page is / and other pages are like /page/, so with current  
> settings index page’s and other page’s links are both selected when user  
> is in other page. Possible solution could be having /home/ or something  
> like that as default page, but how do I do that?

Right. That’s because the home page is the parent of the other pages. So  
the home page will always be rendered with selected or here. For now the  
best fix is to use two navigation tags. Something like this:

- 
- 
- 
- 
- 
- 

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
