Root Relative Linking

I have a main navigation set up like so:

<r:navigation urls=“About:/about/| Blog:/blog/| Portfolio:/portfolio/”>

I would like for the Blog link to be root relative, meaning that
whereever the user is on the site, they will always go to a child of the
root when they click a link.

So if a person is on www.site.com/misc/blah/blah and they click the blog
link they should be taken to www.site.com/blog.

However the way it is working now, they would be taken to
www.site.com/misc/blah/blog.

This is due to the fact that the link created by the navigation tag
looks like this:

… instead of .

So, how can I get the navigation tag to maintain my forward slashes, and
thus allow root relative linking?

Cheers!
Ben

On 11.08.2008, at 16:29, Ben M. wrote:

So if a person is on www.site.com/misc/blah/blah and they click the

So, how can I get the navigation tag to maintain my forward slashes,
and
thus allow root relative linking?

How do you “implement” your navigation area? just checked, and with

  • |

as a snippet this gets rendered as

cu edi


DI Edmund Haselwanter, [email protected],
http://edmund.haselwanter.com/

Edmund Haselwanter wrote:

How do you “implement” your navigation area? just checked, and with

Thanks for the reply Edmund.

Turns out it was a false alarm. I forgot to change the links from being
hard coded to using the snippet.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs