feat(SEO/custom-head): Make og:description set automatically#3115
Merged
SoonIter merged 2 commits intoweb-infra-dev:mainfrom Feb 10, 2026
Merged
feat(SEO/custom-head): Make og:description set automatically#3115SoonIter merged 2 commits intoweb-infra-dev:mainfrom
og:description set automatically#3115SoonIter merged 2 commits intoweb-infra-dev:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes Open Graph metadata more consistent by automatically setting og:description from the resolved page description (similar to how og:title is derived from the page title), addressing the feature request in #3114.
Changes:
- Extend the default head meta generation to include
og:descriptionwhen a description is available. - Update the page head tags E2E fixture test to assert that
og:descriptionis present.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/core/src/theme/layout/Layout/index.tsx | Adds og:description meta tag alongside the existing description meta tag when description is resolved. |
| e2e/fixtures/page-head-tags/index.test.ts | Adds an assertion ensuring og:description is emitted in the generated HTML. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
SoonIter
requested changes
Feb 10, 2026
Member
SoonIter
left a comment
There was a problem hiding this comment.
thanks❤️️, could you update the document here?
Contributor
Author
og:description set automatically
SoonIter
approved these changes
Feb 10, 2026
Member
|
thanks, very useful changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Like og:title, og:description is now set automatically.
Related Issue
close #3114
Checklist