[Zope-dev] Zope 2.1.6 minor ZCatalog bug?
Dieter Maurer
dieter@handshake.de
Sat, 27 May 2000 17:44:14 +0200
I have a ZCatalog object in Zope's root folder.
Its ContentView uses absolute URL's to reference its objects: e.g.
"//acl_users" rather than "/acl_users". Such URL's cause a browser
to interprete the first URL part as host. In the above case,
it looks for host "acl_users" which, of cause, does not exist.
The following patch fixes the problem in my case. It might, however,
introduce other problems if the ZCatalog is not in the root folder.
Dieter
--- :catalogView.dtml Wed Nov 3 19:56:32 1999
+++ catalogView.dtml Sat May 27 17:04:55 2000
@@ -48,7 +48,7 @@
</TD>
<td valign="top"><dtml-var meta_type></td>
<td valign="top" align="left">
- <a href="/<dtml-var "getpath(data_record_id_)">/manage_workspace"><dtml-var "getpath(data_record_id_)">
+ <a href="<dtml-var "getpath(data_record_id_)">/manage_workspace"><dtml-var "getpath(data_record_id_)">
<dtml-if title> (<dtml-var title>)</dtml-if></a>
</td>
</tr>