[Zope] redirect after python script

Dieter Maurer dieter@handshake.de
Fri, 8 Mar 2002 21:06:54 +0100


Carlos de la Guardia writes:
 > You can do that with:
 > 
 > number=5
 > redirect_url='viewCustomer?id='+number
 > context.REQUEST.RESPONSE.redirect(redirect_url)
Just a note: the "HTTP 1.1" specification requires an absolute URL
for redirects.

Apparently, most browsers handle relative URLs also correct, but
they are not obliged to do that.


Dieter