[Zope] Netscape 4.7x Redirect problem

Schmidt, Allen J. aschmidt@nv.cc.va.us
Thu, 30 Aug 2001 12:05:12 -0400


Great. Thanks! I will try your suggestions.

For now I have just replaced the redirects with meta refresh tags in the
same location. Works well so far,
although I am sure it may cause some problems somewhere since it is not in
the HEAD but in several places on the same page depending on where the logic
stops.

I should be able to try your full URL suggestion today. Thanks

Allen

-----Original Message-----
From: Peter Bengtsson [mailto:mail@peterbe.com]
Sent: Thursday, August 30, 2001 9:22 AM
To: Schmidt, Allen J.; zope@zope.org
Subject: Re: [Zope] Netscape 4.7x Redirect problem


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 )