Corrects decorator syntax and redirect route