[Zope] Netscape 4.7x Redirect problem
Peter Bengtsson
mail@peterbe.com
Thu, 30 Aug 2001 15:22:28 +0200
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())
Again, don't ask me why but adding lock=1 as a parameter to the redirect()
has helped me once or twice. I don't know how it works but it makes sure
that after a success full redirect the addressbar shows what you expect it
to show.
Peter
> Hello All...
>
> Trying to use a RESPONSE.redirect('menu') on an intermediate page for
> handling logins.
> After userid and password and submit, the loginCheck page does its thing.
> If really a valid user, the code above redirects to the main menu page.
>
> Works great in IE but I get "Document contains no data" for Netscape.
>
> Has to be the redirect because if I comment it out, the other parts of the
> page display correctly.
>
> Any ideas??
>
> Thanks
>
> Allen
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )