tree-item-url bug ?
Hi, 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;"> <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 !!! Any clue ? TIA --Gilles
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;"> <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
participants (2)
-
Dieter Maurer -
Gilles Lenfant