cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Enabling global redirects in FOM
Date Thu, 22 Apr 2004 13:38:49 GMT
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



Mime
View raw message