[Zope-CMF] relative URLs in STX
Dieter Maurer
dieter@handshake.de
Tue, 17 Jul 2001 23:30:06 +0200 (CEST)
Arkaitz writes:
> Yes, the base is inserted this way in standard_html_header:
>
> <dtml-if relative_to_content>
> <base href="&dtml-absolute_url;" />
> </dtml-if>
>
> The problem is that absolute_url doesn't have the needed trailing '/'.
Sometimes, it is correct *without* the trailing '/'.
> I
> have fixed it removing completely that piece of code, so now Zope
> inserts the correct BASE tag automatically.
That is probably the best you can do.
> Another way could be putting
> the '/' after absolute_url; by hand there, it seems to work, but I don't
> know if it would break sometimes.
It will break in some circumstances, for example, it the last
URL component is a DTML document.
> Can this be considered a bug to be fixed?
I would consider it a bug and put it into the tracker.
Dieter