Added support for redirect when recordPredicate is used