* Fix redirect link after deleting topic
This commit is contained in:
parent
695b17fc4b
commit
79026a06e4
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class Delete extends Page
|
|||
$this->c->DB->beginTransaction();
|
||||
|
||||
if ($deleteTopic) {
|
||||
$redirect = $this->c->Redirect->page('Forum', ['id' => $topic->forum_id])->message('Topic del redirect');
|
||||
$redirect = $this->c->Redirect->page('Forum', ['id' => $topic->forum_id, 'name' => $topic->parent->forum_name])->message('Topic del redirect');
|
||||
$this->c->topics->delete($topic);
|
||||
} else {
|
||||
$redirect = $this->c->Redirect->page('ViewPost', ['id' => $this->c->posts->previousPost($post)])->message('Post del redirect');
|
||||
|
|
Loading…
Add table
Reference in a new issue