[Zope] how do you do dynamic redirection?

Petru Paler ppetru@coltronix.com
Fri, 10 Mar 2000 02:08:14 +0200


On Fri, Mar 10, 2000 at 12:37:17PM +1300, Graham Chiu wrote:
> I would like to redirect a user based upon a variable.
> 
> <dtml-call "RESPONSE.redirect(/target?myvariable=xyz)">
> 
> raises a syntax error.  Does the redirect command only take literals?

   No, it takes a string. Try:

<dtml-call "RESPONSE.redirect('/target?myvariable=xyz')">

-Petru