[Zope] Re: incredible growing urls

Dylan Reinhardt zope@dylanreinhardt.com
15 May 2003 15:29:55 -0700


On Thu, 2003-05-15 at 10:19, Paul Winkler wrote:
> On Thu, May 15, 2003 at 09:13:00PM +0200, Dieter Maurer wrote:
> > When it does not contain complex relative URLs, then the URLs should
> > not grow.
> > 
> > If this is wrong, please post the HTML source.
> 
> i'm afraid it is wrong.
> I already posted a trivial example. 

Indeed you did.

Ultimately Dieter's right, though he wasn't being very clear.  

A "trivial" URL *should* contain ../ when it references URLs above the
current document.  If you don't use that, you're *requesting* the higher
folder in the context of the lower one... Zope can hardly be blamed for
giving you what you ask for.

Use ../ for upward-bound URLs and everything should work out fine.  Or
you could always stick to absolute URLs... those are always safe.

FWIW,

Dylan