Skip to content

Fix /fundraising share card (was scraping the in-page testimonial image) - #18

Merged
hhff merged 1 commit into
mainfrom
fix/fundraising-share-card
Jul 14, 2026
Merged

Fix /fundraising share card (was scraping the in-page testimonial image)#18
hhff merged 1 commit into
mainfrom
fix/fundraising-share-card

Conversation

@hhff

@hhff hhff commented Jul 14, 2026

Copy link
Copy Markdown
Member

Problem

After adding the user-testimonial screenshot to the bottom of /fundraising, that image started showing up as the link's share/preview card.

Cause

The root layout sets a default openGraph/twitter image (the home card, /research/fam-og-image.png). The fundraising layout overrode openGraph/twitter with only title + description. In Next.js a child segment's openGraph object replaces the parent's wholesale (nested images do not merge down), so /fundraising emitted no og:image, and scrapers fell back to the largest in-page image.

Fix

Re-declare the shared home card image on the fundraising openGraph/twitter metadata, and set twitter:card to summary_large_image.

Verification

  • tsc --noEmit: clean
  • Rendered HTML now emits:
    • og:image → https://intelligence.family/research/fam-og-image.png
    • twitter:image → https://intelligence.family/research/fam-og-image.png

Note: already-shared links may keep the old preview until each platform's OG cache expires; force a re-scrape where it matters.

🤖 Generated with Claude Code

Next.js replaces the parent openGraph/twitter metadata wholesale, so the
fundraising layout's title/description-only override dropped the home
card's image. With no og:image, scrapers fell back to the largest in-page
image (the user-testimonial screenshot). Point the card at the generic
home share image.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hhff
hhff merged commit 0912c39 into main Jul 14, 2026
1 check passed
@hhff
hhff deleted the fix/fundraising-share-card branch July 14, 2026 18:23
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.

1 participant