public function getReturnUrl() { return empty($this->_returnUrl) ? Junction::getCurrentUrl() : $this->_returnUrl; }
/** * Close an open state manager/session and redirect the user * * @param string $url * @param bool $exitAfter exit after redirecting? */ public function redirect($url = null, $exitAfter = true) { if (empty($url)) { $authRequest = $this->_stateMgr->get('authRequest'); /* @var AuthRequest $authRequest */ if ($authRequest) { $url = $authRequest->getReturnUrl(); $this->_stateMgr->set('authRequest'); } } parent::redirect($url, $exitAfter); }