Re: redirection in a zpt
Dieter Maurer <[email protected]> Fri, 8 Jul 2005 20:14:20 +0200
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
Kenneth Gonsalves wrote at 2005-7-8 18:16 +0530: >in a zpt, i use tal:condition to check something. If it is true, the >browser should redirect to another template. How do it do this? <tal:redirect define="dummy request.RESPONSE.redirect(new_absolute_location)" /> Note, however, that (this form of) redirect takes effect only at the end of the request. You must take care, that further request processing does not do bad things... -- Dieter