I would like to enable global redirects from within FOM, such as:
cocoon.redirectTo("http://www.foo.com", true); where 'true' says 'global'.
cocoon.redirectTo("http://www.foo.com") or cocoon.redirectTo("http://www.foo.com", false) would do the same redirection as currently.
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.
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 ;-)