Forráskód Böngészése

Update Edit post

Use the link from the post to redirect.
Visman 4 éve
szülő
commit
f73e8d05c5
1 módosított fájl, 1 hozzáadás és 1 törlés
  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');
     }
 
     /**