Optimized code for report redirect