diff --git a/packages/next/src/lib/metadata/generate/meta.tsx b/packages/next/src/lib/metadata/generate/meta.tsx index d37121960d023..b84c95f2c5d55 100644 --- a/packages/next/src/lib/metadata/generate/meta.tsx +++ b/packages/next/src/lib/metadata/generate/meta.tsx @@ -50,7 +50,13 @@ function ExtendMeta({ diff --git a/test/e2e/app-dir/metadata/metadata.test.ts b/test/e2e/app-dir/metadata/metadata.test.ts index 003c29f5412ed..14cc949c5bfb6 100644 --- a/test/e2e/app-dir/metadata/metadata.test.ts +++ b/test/e2e/app-dir/metadata/metadata.test.ts @@ -418,7 +418,7 @@ createNextDescribe( ) await checkMetaPropertyContentPair(browser, 'og:locale', 'en-US') await checkMetaPropertyContentPair(browser, 'og:type', 'website') - await checkMetaPropertyContentPair(browser, 'og:image:url', [ + await checkMetaPropertyContentPair(browser, 'og:image', [ 'https://example.com/image.png', 'https://example.com/image2.png', ]) @@ -464,7 +464,7 @@ createNextDescribe( it('should pick up opengraph-image and twitter-image as static metadata files', async () => { const $ = await next.render$('/opengraph/static') - expect($('[property="og:image:url"]').attr('content')).toMatch( + expect($('[property="og:image"]').attr('content')).toMatch( /https:\/\/example.com\/_next\/static\/media\/metadata\/opengraph-image.\w+.png/ ) expect($('[property="og:image:type"]').attr('content')).toBe(