[Zope] tree-item-url bug ?

Dieter Maurer dieter@handshake.de
Sat, 18 Aug 2001 22:08:46 +0200 (CEST)


Gilles Lenfant writes:
 > Seems its a bug of tree-item-url (Zope 2.3.3) or I missed something ?
 > 
 > /foo/index_html (dtml doc) contains:
 > 
 > <dtml-tree bar branches="objectValues">>
 > <img src="&dtml-icon;">&nbsp;<a href="<dtml-var tree-item-url>"><dtml-var
 > titre></a>
 > </dtml-tree>
 > 
 > Renders good, but the URL links generated by "tree-item-url" forget the
 > "root" component of the URL.
 > In example for an object that's at "/foo/bar/anboject", the "tree-item-url"
 > is http://localhost:8080/foo/anobject when it should be
 > http://localhost:8080/foo/bar/anobject !!!
I think, "tree-item-url" is the URL relative to the tree root URL.
This would mean, "anboject" would be correct.

That you see an absolute URL is probably the effect of your
browser that made the relative URL absolute.


Dieter