Skip to content

Commit 3365eef

Browse files
committed
Update Job Detail SEO meta image logic
1 parent dccfa1d commit 3365eef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/Services/SeoMetaService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function generateJobDetailMeta($job): MetaTagDTO
131131

132132
$keywords = "{$job->job_title}, {$job->employer_name}, {$job->job_category}, {$location} jobs, tech jobs";
133133

134-
$image = $job->employer_logo ?? $this->resolveImage();
134+
$image = $this->resolveImage();
135135

136136
$structuredData = [
137137
'@context' => 'https://schema.org',
@@ -143,7 +143,7 @@ public function generateJobDetailMeta($job): MetaTagDTO
143143
'hiringOrganization' => [
144144
'@type' => 'Organization',
145145
'name' => $job->employer_name,
146-
'logo' => $image,
146+
'logo' => $job->employer_logo ?? $this->resolveImage(),
147147
],
148148
'jobLocation' => [
149149
'@type' => 'Place',

config/seo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
],
2323

2424
'images' => [
25-
'default' => '/assets/images/og-default.jpg',
25+
'default' => '/assets/images/logo-icon-40.png',
2626
'fallback' => '/assets/images/favicon.ico',
2727
'width' => 1200,
2828
'height' => 630,

0 commit comments

Comments
 (0)