[Zope-CMF] relative URLs

Rolander, Dan Dan.Rolander@marriott.com
Mon, 14 May 2001 15:35:08 -0400


Thank you Guido. I've also found this to be a difficult "feature" to work
around when trying to author and test a collection of linked HTML files
locally before uploading to CMF.

Dan

> -----Original Message-----
> From: Guido van Rossum [mailto:guido@digicool.com]
> Sent: Monday, May 14, 2001 4:22 PM
> To: zope-cmf@zope.org
> Cc: jeremy@alum.mit.edu
> Subject: [Zope-CMF] relative URLs
> 
> 
> (This is my first post to zope-cmf; I've played with CMF somewhat and
> I've got big plans for a new python.org site, but although I work at
> DC I'm not by any stretch of imagination a CMF expert!)
> 
> I've discovered that if you create a Folder and in that folder you
> create several Documents, those documents must refer to each other
> with relative URLs of the form "../name".  For someone like me who is
> experienced in creating websites with simpler means (e.g. Apache and
> HTML) this is really confusing, because there relative references
> between documents in the same directory are always done using the form
> "name" (i.e., no "../" prefix).  This makes it hard to import a
> collection of HTML files from elsewhere.
> 
> A little research shows that Zope generates a <base> tag whose href is
> the URL of the document *with a trailing slash added*.  This seems
> wrong to me.  Is there any way to let Zope generate a <base> tag
> without a trailing slash, at least for those document types that
> resemble HTML documents, like News Item, Document, File, and Link?
> 
> (I should mention that I showed this to Jim, and he agreed that it was
> broken.)
> 
> --Guido van Rossum (home page: http://www.python.org/~guido/)
> 
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
> 
> See http://www.zope.org/Products/PTK/Tracker for bug reports 
> and feature requests
>