@devries-cameron20 / composio-1 / commits / 8d02b1602
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): Add SEO description fallback for API reference pages

Some OpenAPI endpoints have null descriptions in the spec, causing missing meta description tags. This adds a fallback to use the page title (which comes from the OpenAPI summary field) when description is not available. Affected endpoints: - getAuthConfigs, postAuthConfigs - getConnectedAccounts, postConnectedAccounts - getTriggerInstancesActive, postTriggerInstancesBySlugUpsert - patchTriggerInstancesManageByTriggerId, deleteTriggerInstancesManageByTriggerId Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 28, 2026 at 01:05 UTC 8d02b1602fd2932fd4e35cc8239ff540c7cc2a77
1 file changed +5 -2
docs/app/(home)/reference/[[...slug]]/page.tsx
+5 -2
@@ -92,11 +92,14 @@ export async function generateMetadata({
92 const page = referenceSource.getPage(slug);
93 if (!page) notFound();
94
95 - const ogImage = getOgImageUrl('reference', page.slugs, page.data.title, page.data.description);
95 + // Use description if available, otherwise fall back to title for SEO
96 + // This handles OpenAPI pages where description may be null in the spec
97 + const description = page.data.description || page.data.title;
98 + const ogImage = getOgImageUrl('reference', page.slugs, page.data.title, description);
99
100 return {
101 title: page.data.title,
99 - description: page.data.description,
102 + description,
103 alternates: { canonical: page.url },
104 openGraph: { images: [ogImage] },
105 twitter: { card: 'summary_large_image', images: [ogImage] },