Kali, routing processes after sign in are described in ow_system_plugins/base/controllers/user.php file.
There are two ways people can sign in to your site:
1. Standard sign in ( using
www.sitename.com/sign-in URL):
standardSignIn
public function standardSignIn()
{ .......
$this->redirect(OW::getRouter()->getBaseUrl() . urldecode($_GET['back-uri']));
}
Instead of Base URL you can specify another route.
2. Ajax sign in ( when signin in from console):
ajaxSignIn
public function ajaxSignIn()
{ ........
if ( $result->isValid() )
{
exit(json_encode(array('result' => true, 'message' => $message)));
}
With ajax sign in you will need to add your own sign in logic code instead of $message.
Where would you like to redirect users?
I personally find it very frustrating when I get redirected anywhere after signing in in cases when I, for example, open link to certain user profile and after signing in I get redirected to completely another page instead of staying on the page which I opened ( but with loged in status).
Any modifications done to this file might be erased if you update core platform in future.