31 Aug
2001
31 Aug
'01
12:46 p.m.
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.