Skip to content

Commit

Permalink
fix: og image url rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 20, 2024
1 parent c41cd3e commit b8a6f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/shared/seo/src/lib/metadata.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class MetadataService {
}

private buildImageUrl(image: string): string {
return image.startsWith('http')
return image.startsWith('http') || image.startsWith('//')
? image
: this.window.location.origin + image;
}
Expand Down

0 comments on commit b8a6f46

Please sign in to comment.