I have a Kohana-based website and I want to verify, in a function, where a user comes from. So if he comes from a specific route, I have to redirect him somewhere.
Is there a way to verify what is the route a user comes from (or simply where he comes from) in Kohana 3.0?
Code example:
public function action_after_register(){
if ($this->authlite->logged_in())
{
$this->redirect('Home');
}
// verify if he comes from a specific route and redirect him accordingly
}