Update Edit post
Use the link from the post to redirect.
This commit is contained in:
parent
75e8387b09
commit
f73e8d05c5
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ class Edit extends Page
|
|||
|
||||
$this->c->search->index($post, 'edit');
|
||||
|
||||
return $this->c->Redirect->page('ViewPost', ['id' => $post->id])->message('Edit redirect');
|
||||
return $this->c->Redirect->url($post->link)->message('Edit redirect');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue