Martijn Pieters wrote:
On Mon, Aug 07, 2000 at 04:23:36PM -0400, Evan Simpson wrote:
From: Martijn Pieters <mj@digicool.com>
misc_ is a root level object. Using absolute_url you are acquiring it into your Instance URL, which is not necessary (and will hamper off-server caching). Use &dtml-SCRIPT_NAME; instead (which will give you the absolute url of the root object in all cases):
<img src="&dtml-SCRIPT_URL;/misc_/myProduct/chooserIcon" border=0>
I sugget using "&dtml-BASE1;", since SCRIPT_NAME doesn't work well with virtual hosting.
I don't see this would make a difference; Zope is passed the base URL at which it takes over the URL. A SiteAccess object may only influence parts of the URL that come _after_ this base.
http://zopeintherooturl/foo, where foo is a Zope object, has SCRIPT_NAME='/', while http://zopeinasuburl/zope/foo, has SCRIPT_NAME='/zope/'. Zope may remove the foo from the URL because of some Virtual Host rule, SCRIPT_NAME will still be valid.
Sorry, I'd have to agree with Evan on this one. I'm pretty sure I've had SiteAccess not play nicely wih SCRIPT_NAME whereas BASE1 works fine... cheers, Chris