Browse Source

Update Post page

Use the link from the post to redirect.
Visman 4 years ago
parent
commit
75e8387b09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/Pages/Post.php

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

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