[Zope-CMF] Question on Redirecting using the Logged_in form
Dieter Maurer
dieter@handshake.de
Mon, 17 Jun 2002 19:25:04 +0200
hapfire2000 writes:
> I have been working on redirecting a user from the login page
> directly to their "My stuff" page once they click on the "log in"
> button and are authenticated. I can get it to work in the dtml
> (generic) logged_in form by modifying it.
> Example below:
> ...
> MODIFIED:
> <!-- ****** Enable the automatic redirect ***** -->
> <dtml-call expr="RESPONSE.redirect
> ('http://myserver/theportalname/Members/'+AUTHENTICATED_USER.getId()
> +'/folder_contents')">
> <!-- ****** Enable the automatic redirect ***** -->
> ...
> The problem is when I try to do the same thing in the ZPT generic
> logged_in form. I cant seem to get it to work. I keep getting
> errors.
Which one?
Try:
<tal:div tal:define="dummy python:request.RESPONSE.redirect(
'http://myserver/theportalname/Members/'+request.AUTHENTICATED_USER.getId()+'/folder_contents');
" />
Dieter