fix endless redirect loops and bogus results messages on ticket view, RT#23309