Update (post): Fix broken routes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user