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';
}