Am Freitag, 1. April 2005 22:37 schrieb Stephan Richter:
> On Friday 01 April 2005 11:34, Florian Lindner wrote:
> > Another problem I have, that when I've clicked on home a few times you
> > have a URL like that:
> > http://horus.local:8080/++skin++centershock/cs/++site++/++site++/++site++
> >/+ +site++/++site++
> > Which in IMO is not so great. Any way to normalize this path?
> You probably set your base path incorrectly. Anyways, I still think this is
> a horrible way to do it; I would rather build a view that forwards you to
> the site.
I've implemented a view like that:
from zope.app.zapi import absoluteURL
URL = absoluteURL(getSite(), self.request)
Which for me works perfectly. Any drawbacks of this solution?
Zope3-users mailing list