Update (post): Fix broken routes

This commit is contained in:
2023-10-04 21:17:56 +08:00
parent c9c6004694
commit 8c77682764
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ public static function handle(Post $post)
if ($post->save()) {
if (app()->environment() == 'production') {
$post_url = route('front.post', ['slug' => $post->slug]);
$post_url = route('front.post', ['slug' => $post->slug, 'category_slug' => $post->category->slug]);
try {
IndexNow::submit($post_url);