RE: [Zope] Catalog.getpath(data_record_id_) without Zope ????
-----Original Message----- From: Geir B Hansen [mailto:geirh@funcom.com] Sent: Monday, October 25, 1999 11:12 AM To: zope@zope.org Subject: [Zope] Catalog.getpath(data_record_id_) without Zope ????
When listing catalog-search-results <dtml-var "Catalog.getpath(data_record_id_)"> gives me the correct URL, but omits the "Zope" in the start of it... instead of returning : mydomain.com/Zope/myfolder/mydocument_html it gives me : mydomain.com/myfolder/mydocument_html - which really doesn't point to anything ...
Anybody experienced anything similar , or preferably know how to fix it ??
getpath only returns the path from the root of Zope to your object. If you want to get the right URL, you'll have to prepend <dtml-var SCRIPT_NAME> to the path call. getpath will definatly not include the machine name in what it returns, there is no way it can know this. Your browser is probably infering an incorrect URL of a relative path. -Michel
participants (1)
-
Michel Pelletier