[Zope] incredible growing urls

Trevor Toenjes zope@toenjes.com
Tue, 13 May 2003 14:43:33 -0400


> Why does the url grow ( something like a/b/a/b/a/b/a//b/a/b )?  and what
> can be done to prevent it?

This is the danger of using relative references within Zope.

If you use absolute_urls to reference an object, then the URL will be the
shortest path to the object and avoid the endless looping path.

<a href="&dtml.url-myobject;">
<a tal:attributes="href here/myobject/absolute_url">

Cheers,
Trevor