Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: metadataBase is ignored when openGraph.images has a URL #49889

Closed
wants to merge 1 commit into from

Conversation

renomureza
Copy link

@renomureza renomureza commented May 17, 2023

What?

metadataBase is ignored when openGraph.images has a URL.

Why?

The getSocialImageFallbackMetadataBase function ignores the given URL and returns fallbackMetadata.

How?

This PR makes the getSocialImageFallbackMetadataBase function return the given URL if provided.

Fixes #49807

@kodiakhq kodiakhq bot closed this in #49924 May 17, 2023
kodiakhq bot pushed a commit that referenced this pull request May 17, 2023
metadataBase is using `process.env.PORT` to construct a host when there's no `metadataBase` specified in layout. Dev server needs to pass down the PORT env from the parent prcoess.

Fixes #49807
Fixes #49859
Closes #49889
@renomureza renomureza deleted the metadata-ogimage-url branch May 17, 2023 13:40
hydRAnger pushed a commit to hydRAnger/next.js that referenced this pull request Jun 12, 2023
metadataBase is using `process.env.PORT` to construct a host when there's no `metadataBase` specified in layout. Dev server needs to pass down the PORT env from the parent prcoess.

Fixes vercel#49807
Fixes vercel#49859
Closes vercel#49889
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

metadataBase is ignored when openGraph.images has a relative path
2 participants