Skip to content

Add fallback for metadata description#2550

Merged
Freego1783 merged 1 commit intomainfrom
1378-metadata-desc-fallback
Mar 27, 2026
Merged

Add fallback for metadata description#2550
Freego1783 merged 1 commit intomainfrom
1378-metadata-desc-fallback

Conversation

@Aibono1225
Copy link
Copy Markdown
Member

@Aibono1225 Aibono1225 commented Mar 26, 2026

Description

✏️
Relates to #1378

Screenshot (optional)

✏️
image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a fallback for per-rule page <meta name="description"> generation so pages still get a meaningful description when seoDescription is not provided.

Changes:

  • Import extractBodyPreview utility into the dynamic rule/category page route.
  • Update generateMetadata() to prefer seoDescription, otherwise derive a preview from the rule body.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Aibono1225 Aibono1225 changed the title add metadata description fallback logic Add fallback for metadata description Mar 27, 2026
@Freego1783 Freego1783 merged commit f3207f3 into main Mar 27, 2026
4 checks passed
@Freego1783 Freego1783 deleted the 1378-metadata-desc-fallback branch March 27, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants