I am not really sure what your problem is here. Parents act like  
folders as far as the browser is concerned, so nothing has really  
changed. Ithink your only problem is the leading slash, which will  
tell the browser to look at the root. So in your example, instead of  
writing <a href="b">, you need to write <a href="/b">.

So basically, you need to put the slash not behind "a", but in front  
of "b". This isn't anything that has to do with Radiant specifically,  
but is typical of most content management systems. I know Textpattern  
works similarly.

Is this what you are asking?

Keith Bingman
Tel: +49-7731-79838380
[EMAIL PROTECTED]
http://keithbingman.com




On Jun 12, 2007, at 7:30 AM, Chris Parrish wrote:

> My apologies if this has already been discussed...
>
> I'm converting a website which uses relative links into Radiant.
> Relative links are a bit screwy in Radiant because Radiant has done  
> away
> with folders.
>
> I like this convention -- that pages can have children -- but browsers
> still think in terms of folders.  The issue is the trailing slash.
>
> In the following example:
>  root
>   |- A
>   |  |- C
>   |  |- D
>   |- B
>
> In Radiant, I can render page A in my browser with either:
>   * http://root/a
>   * http://root/a/
>
> This makes perfect sense since page A is both a child of root/ and the
> parent of other pages.
>
> However, if in page A I have a relative link: <a href="b">, the target
> page depends on the address used.  In the first case, I will be  
> directed
> to http://root/b because the browser thinks I'm in the root/  
> folder.  In
> the second case, I'm sent to http://root/a/b because it thinks I'm in
> the root/a/ folder.
>
> Has anyone else run into this?  If so, how are you solving it?  Is  
> there
> a best practice here or some Radiant tag, or is everyone just using
> absolute URLs?
>
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to