/** * After getting the access token store the token in the session and redirect * * @param KCommandContext $context Context parameter * @param void */ protected function _actionGetaccesstoken($context) { parent::_actionGetaccesstoken($context); $token = $this->getAPI()->getToken(); if (empty($token)) { $context->response->setRedirect(JRoute::_('index.php?')); return false; } $context->response->setRedirect(JRoute::_('option=com_connect&view=login')); }