I have 2 rules that fire on the same event (content is viewed). Both of them result in a redirect, but each one to different URLs. It seems that second redirect takes precedence over the first, where I actually want the first redirect to happen first, immediately, causing all further rules execution to halt.

Didn't there used to be an 'immediate' option for the redirects? Can we get that back? As it now, I can't see any way to have the first rule do it's redirect and halt execution of the rules processing.

Comments

mrfelton’s picture

Component: Rules Core » Rules Engine
Status: Active » Needs review
StatusFileSize
new2.76 KB

Here is a patch that brings the immediate redirect option back.

fago’s picture

Title: Multiple Rules redirect conflict, no immediate option? » Keep the order of multiple redirects
Status: Needs review » Needs work

The immediate option is dangerous, so no I don't think we should bring it back. However, I'd agree that the first issued redirect should win. So let's best change the code to work that way.