Skip to content

Commit d076f01

Browse files
fix(blog): add prefix to seo image url (#287)
1 parent 9a29a78 commit d076f01

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libs/blog/shared/util-seo/src/lib/services/seo.service.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ export class SeoService {
8282
if (seoData.og_image) {
8383
this.setMetaImage(
8484
seoData.og_image.map((i) => {
85-
return { url: i.url, height: i.height, width: i.width };
85+
const updatedUrl = i.url.startsWith('https://angular.love/wp-content')
86+
? i.url.replace(
87+
'https://angular.love/wp-content',
88+
'https://wp.angular.love/wp-content',
89+
)
90+
: i.url;
91+
92+
return { url: updatedUrl, height: i.height, width: i.width };
8693
}),
8794
);
8895
}

0 commit comments

Comments
 (0)