Phosphorum\Controllers\SessionController::discussionsRedirect PHP Method

discussionsRedirect() protected method

Returns to the discussion
protected discussionsRedirect ( ) : Phalcon\Http\ResponseInterface
return Phalcon\Http\ResponseInterface
    protected function discussionsRedirect()
    {
        $referer = $this->request->getHTTPReferer();
        $path = parse_url($referer, PHP_URL_PATH);
        if ($path) {
            $this->router->handle($path);
            return $this->router->wasMatched() ? $this->response->redirect($path, true) : $this->indexRedirect();
        } else {
            return $this->indexRedirect();
        }
    }