Forum\Controller\Post\SaveController::getFailRedirect PHP Method

getFailRedirect() protected method

getFailRedirect
protected getFailRedirect ( Windwalker\Data\Data $data = null ) : string
$data Windwalker\Data\Data
return string
    protected function getFailRedirect(Data $data = null)
    {
        if ($this->input->get('hmvc')) {
            return '';
        }
        // Count last pages
        $this->topic = $topic = $this->model->getRecord('Topic');
        $topic->load($data->topic_id);
        $page = $this->getUserState('forum.topic.list.page.' . $topic->id, 1);
        $category = $this->model->getRecord('Category');
        $category->load($topic->category_id);
        return $this->router->http('topic', array($this->pkName => $data->topic_id, 'path' => $category->path, 'page' => $page)) . '#editor';
    }