redirect() - 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() (/showthread.php?tid=67873) |
redirect() - donpwinston - 04-19-2017 I can't get redirect() to work. Is this yet to be worked on? I get a 'Unable to locate a valid route' error. The route works form the browser's command box. Code: <?php namespace App\Controllers; RE: redirect() - donpwinston - 04-19-2017 Oops, someone else has the same problem. I guess it isn't fixed yet. Sorry. RE: redirect() - kilishan - 04-19-2017 No one entered a bug report so it slipped my mind. Will work on it tonight, though. In the meantime - try it without the leading '/' and you should be fine. RE: redirect() - kilishan - 04-19-2017 Just added some more tests and everything seems to be working as expected. There was a fix directly related to what you're seeing that was added a couple of days ago. Please pull down the latest version of the CI4 and try again. |