protected function getSuccessRedirect(Data $data = null)
{
$category = $this->model->getRecord('Category');
$category->load($this->topic->category_id);
if ($this->primary) {
return $this->router->http('category', array('path' => $category->path));
} else {
return $this->router->http('topic', array('path' => $category->path, 'id' => $this->topic->id));
}
}