redirect() in CI4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: redirect() in CI4 (/showthread.php?tid=67826) |
redirect() in CI4 - nskarl - 04-14-2017 hi all! Can't nderstand how working redirect in CI4 ? if i use: redirect('/auth/login'); i have error: BASEPATH/Router/RouteCollection.php at line 967 Unable to locate a valid route. help me please RE: redirect() in CI4 - kilishan - 04-14-2017 Ah, looks you found a bug. The redirect helper method now tries to lookup the route using named routes and reverse-routing first, then should attempt a generic redirect after that. However, looks like the reverseRoute method throws an exception and the helper method isn't catching it. If you could post a bug report over at GitHub, that would be a big help, and I'll get it fixed up tonight, hopefully, or early next week. RE: redirect() in CI4 - nskarl - 04-16-2017 Thanks for fix man! RE: redirect() in CI4 - kilishan - 04-16-2017 No problem! Thanks for letting me know about it. |