[Zope] Wrong <base href=""> for .HTM file
Dieter Maurer
dieter@handshake.de
Thu, 26 Apr 2001 20:41:53 +0200 (CEST)
Loren Stafford writes:
> Look at this pywatch output below. When I request a file that ends in .HTM
> the <base> tag ends with a / which confuses the browser. The browser makes
> all relative references in the .HTM file (<img> tags for example) relative
> to http://localhost/Engineering/LSFReports/cibhrm6.HTM/ not to
> http://localhost/Engineering/LSFReports/ as you would expect.
>
> When I try this with a file that is named with a lowercase .htm extension,
> no <base> is generated, and the browser fetches all relative <img> tags just
> fine.
Apparently, you get an object with an "index_html" method
that is not "None". In this case, ZPublisher calls the "index_html",
adds an "base" tag and appends a '/' to the URL as it would
be necessary for a folder.
Dieter