cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject [QVOTE] Add global forwards to Flow
Date Wed, 05 May 2004 20:19:28 GMT
I have previously posted this message with no reply, which I take to be 
no objection:

I would like to enable global redirects from within FOM, such as:

cocoon.redirectTo("", true);  where 'true' says 'global'.

cocoon.redirectTo("") or 
cocoon.redirectTo("", false) would do the same 
redirection as currently.

This is why:

<map:match pattern="uv1">
 <map:redirect-to uri="cocoon:/uv2"/>

<map:match pattern="uv2">
 <map:call function="go"/>

function go() {

Going to http://localhost:8888/uv2 will redirect correctly. Going to 
http://localhost:8888/uv1 will not.

I do not see any reason why we shouldn't add this functionality to FOM.

Please state any objections. If no objections by the end of Friday, I 
will commit my fix.

Upayavira, who is learning to take silence as assent, rather than 
rejection ;-)

View raw message