浏览代码

Update Edit post

Use the link from the post to redirect.
Visman 4 年之前
父节点
当前提交
f73e8d05c5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Pages/Edit.php

+ 1 - 1
app/Models/Pages/Edit.php

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