Skip to content

fix: og:image title/description not rendering#371

Merged
juandolealt merged 1 commit intomainfrom
agent-1777692085-26589-10973
May 2, 2026
Merged

fix: og:image title/description not rendering#371
juandolealt merged 1 commit intomainfrom
agent-1777692085-26589-10973

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented May 2, 2026

Problem: OG images show literal %title instead of the actual page title (e.g. "Send a Payment"). This affects all non-landing pages.

Root cause: URLSearchParams in the ogImageUrl config function URL-encodes %title%25title, so Vocs's .replace('%title', ...) substitution can't find the placeholder.

Fix: Build the query string manually, keeping %title and %description as bare placeholders for Vocs to substitute.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tempo-docs Ready Ready Preview, Comment May 2, 2026 6:09pm

Request Review

URLSearchParams was encoding %title → %25title before Vocs could
replace the placeholder with the actual page title. Build the query
string manually so the %title and %description placeholders survive
intact for Vocs substitution.

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019de67d-9b8f-73f8-90e3-e9a6c7c5c0f4
@decofe decofe force-pushed the agent-1777692085-26589-10973 branch from d8187e2 to 733eb83 Compare May 2, 2026 03:36
@decofe decofe force-pushed the agent-1777692085-26589-10973 branch from 733eb83 to 1d7f69a Compare May 2, 2026 18:05
@juandolealt juandolealt merged commit fc16da4 into main May 2, 2026
10 checks passed
@juandolealt juandolealt deleted the agent-1777692085-26589-10973 branch May 2, 2026 21:08
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.

2 participants