Cor Posted February 8, 2012 Report Posted February 8, 2012 Hello all, When I logout from my site it redirect me to http://www.vbirdva.com/vbv/index.php/'>http://www.vbirdva.com/vbv/index.php/ I wanna change that to http://www.vbirdva.com/vbv/ Where can I change that? Thank you in advange. Regards, Cor Quote
Moderators mark1million Posted February 8, 2012 Moderators Report Posted February 8, 2012 HI Cor, that setting is in the Core>Modules>Logout>Logout.php Quote
Cor Posted February 8, 2012 Author Report Posted February 8, 2012 HI Cor, that setting is in the Core>Modules>Logout>Logout.php Hi mark, I have found that, but not sure what I have to change there Regards, Cor Quote
Moderators servetas Posted February 8, 2012 Moderators Report Posted February 8, 2012 After a quick search i found a "solution". Go to the Logout.php file and replace where: public function index() { Auth::LogOut(); /*redirect back to front page */ header('Location: '.url('/')); #$this->set('redir', SITE_URL); #$this->render('login_complete.tpl'); } with this one: public function index() { Auth::LogOut(); /*redirect back to front page */ $URL="http://www.vbirdva.com/vbv/"; header("Location: $URL"); #$this->set('redir', SITE_URL); #$this->render('login_complete.tpl'); } Tested and works . Quote
Cor Posted February 8, 2012 Author Report Posted February 8, 2012 Works like a charme. Thank you very much. Regards, Cor Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.