[Zope] Netscape 4.7x Redirect problem

Behrens Matt - Grand Rapids Matt.Behrens@Kohler.Com
Fri, 31 Aug 2001 08:46:51 -0400


Peter Bengtsson wrote:

> Don't ask me why but people in the community keep repeating that you should
> pass a full url to the redirect() method.
> Do instead:
> RESPONSE.redirect('http://www.guugle.com/Allen/menu')
> ...or...
> RESPONSE.redirect(menu.absolute_url())

This is because HTTP specifies that Location must give an absolute URI 
(<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30>), and 
redirect uses a 302 response and the Location field.