[Zope] folder url should end in /

Dieter Maurer dieter@handshake.de
Mon, 17 Dec 2001 21:28:54 +0100


Lee Harr writes:
 > ... folder URL without trailing '/' ...
 > I know that Zope adds a <base href="..."> when there is an html head
 > section, but is the head section required?
 > 
 > I notice that Apache, when a bare folder is requested, comes
 > back with the folder with the trailing slash automatically.
 > Is there a reason why Zope does not do this? Should I just be
 > educating the newbie html coders, or is this a bug?
I do not think, it is a bug.

The alternative would be to use a redirect with the modified
URL. It would be less efficient, make problems for request
methods other then "GET" and cause messages in the mailing
list about browser differences wrt. redirects (I just
read one today)...

Apache can safely use redirect, when an URL hit a folder (which
probably only happens for "GET" requests).
For Zope, it would be much more problematic.


Dieter