Skip to content

Commit 7b54cc0

Browse files
leereillyheiskr
andauthored
Prepend protocol to og:image and twitter:image (#55391)
Co-authored-by: Kevin Heis <[email protected]>
1 parent 31d70f7 commit 7b54cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frame/components/DefaultLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const DefaultLayout = (props: Props) => {
6161
const metaDescription = page.introPlainText ? page.introPlainText : t('default_description')
6262

6363
const SOCIAL_CATEGORIES = new Set(['code-security', 'actions', 'issues', 'copilot'])
64-
const SOCIAL_CARD_IMG_BASE_URL = `${xHost}/assets/cb-345/images/social-cards`
64+
const SOCIAL_CARD_IMG_BASE_URL = `${xHost ? 'https://' + xHost : ''}/assets/cb-345/images/social-cards`
6565

6666
function getCategoryImageUrl(category: string): string {
6767
return `${SOCIAL_CARD_IMG_BASE_URL}/${category}.png`

0 commit comments

Comments
 (0)