Update Post page
Use the link from the post to redirect.
This commit is contained in:
parent
2ea78456dd
commit
75e8387b09
1 changed files with 1 additions and 1 deletions
|
@ -327,6 +327,6 @@ class Post extends Page
|
|||
}
|
||||
}
|
||||
|
||||
return $this->c->Redirect->page('ViewPost', ['id' => $merge ? $lastPost->id : $post->id])->message('Post redirect');
|
||||
return $this->c->Redirect->url($merge ? $lastPost->link : $post->link)->message('Post redirect');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue