Hi! On Tue, Jul 31, 2001 at 12:12:37PM -0700, Michael R. Bernstein wrote:
On 31 Jul 2001 19:09:57 +0100, Steve Alexander wrote:
absolute_url(1) is supposed to give you the "physical path relative to a VirtualRoot".
However, the returned value doesn't start with a "/", so it is not really a useful relative path.
Is this a bug, or was it designed that way?
(I suspect the answer might be "yes" and "yes" from my point of view :) )
Reference: /lib/python/OFS/Traversable.py
But that *is* a relative path. Paths beginning with a "/" are "site-relative" paths.
Arguably, absolute_url should be returning the site-relative path, though.
Actually for what I know they usually make problems with virtual sites (the normal absolute_url(1) that is). At least in ZWiki or WikiForNow I have replaced the occurrence of absolute_url(relative=1) in wiki_base_url() by an absolute on in order to make the edit forms etc. work again (while using virtual site root, dunno what happens with a SiteRoot but I guess something similar). So dunno if some change to absolute_url(1) might help here though on the other hand it might break things if it's behaviour is simply changed.. cheers, Christian -- COM.lounge http://comlounge.net/ communication & design info@comlounge.net