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

cocoon.redirectTo("http://www.foo.com";, true); where 'true' says 'global'.

This is why:

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

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

function go() {
 cocoon.redirectTo("http://www.foo.com";);
}

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.

WDYT?

Upayavira




Reply via email to