[Zope-CMF] relative URLs
Shane Hathaway
shane@digicool.com
Mon, 14 May 2001 16:35:37 -0400
Guido van Rossum wrote:
> 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?
We need to call RESPONSE.setBase(content_url) somewhere, somehow. It
could be added to document_view, document_edit_form, document_*, etc.
At the moment I can't think of a better place.
Shane