[Zope] Don't use relative links!

Chris Withers chrisw@nipltd.com
Fri, 18 Aug 2000 19:46:20 +0100


Stuart Foster wrote:
> However if I traverse the two folders sometimes the URL looks like
> 
> mainfolder/subfolder/subfolder/subfolder/index_html
> 
> Why..

somewhere on one of you pages you have a link something like
<a href="subfolder/index_html">

that's a relative link and thanks to the magic of the Zope automatically
inserted BASE tag (yurch!) will actually be a link to:
http://yoursite.com/mainfolder/subfolder/subfolder/index_html

so, the above should actually be:

<a href="&dtml.url-subfolder/index_html">

cheers,

Chris