Update Post page

Use the link from the post to redirect.
This commit is contained in:
Visman 2021-03-22 22:29:06 +07:00
parent 2ea78456dd
commit 75e8387b09

View file

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