Fix route matching when redirect is used with a failing constraint