I have a silly question today, but I simply could not find the answer to it anywhere.
I need to change the page the users are directed to after a successful login. Any ideas? Thanks, Exaspian Studios Staff.
I have a silly question today, but I simply could not find the answer to it anywhere.
I need to change the page the users are directed to after a successful login. Any ideas? Thanks, Exaspian Studios Staff.
If you are in Controler try with one of these two lines:
$this->redirect($redirectTo = null);
$this->redirectToAction($action);
redirect is a method that takes one parameter.
if you want it to redirect to dashboard just add 'dashboard'.
EXAMPLE:
$this->redirect('dashboard);
or to 'forum'
$this->redirect('forum');
Hope I helped
Thanks for the help, Petar! :)
You are looking for a file in
ow_system_plugins\base\controllers\user.php
line 281:
$redirectUrl = isset($_GET['back-uri']) ? OW_URL_HOME . urldecode($_GET['back-uri']) : OW::getRequest()->buildUrlQueryString(null, array());
If it's ok rename the first post and add SOLVED at the end :)