[Setup] Form prior redirection

Denis Bitouzé dbitouze at wanadoo.fr
Thu Mar 17 09:50:18 UTC 2011

Le jeudi 17/03/11 à 10h24,
"Bastien Gauthier" <gbastien at commune.sambreville.be> a écrit :

> If you do not add the "portal_url", you could have some problems if
> you url is actually "http://my_ip_address:8080/myplonesite", this
> would redirect to "http://my_ip_address:8080/my_form" wich is not the
> correct one...


> What you wrote with the portal_url is wrong, that is why the "label"
> portal_url is added to your url...
> Do this : 
> <tal:redirect define="dummy
> python:request.RESPONSE.redirect(portal_url +
> '/forms/my_join_form')" />

I suspected something like that :)

> This way, you are sure it will work in any cases... (well... :-))
> Because the portal_url can change depending where you access it and
> it could have different formats...


Many thanks!

Have a nice day.

More information about the Setup mailing list