Currently, the CallFunctionNode returns redirector.hasRedirected() as its result during processing. Its redirector is an instance of a ForwardRedirector.

Inside a flowscript, you can do cocoon.redirectTo to redirect the user to a new page, but that redirects using the environment directly, not the ForwardRedirector that the TreeProcessor is thinking about.

I've patched my ForwardRedirector to check to see if the Environment that it wraps is a Redirector, and the ForwardRedirector.hasRedirected() does an OR between its hasRedirected and the Environment's hasRedirected.

This fixes my problem, I just wanted to verify that its a valid fix in the global sense :)
-pete


Reply via email to