@devries-cameron20 / composio-1 / commits / 32fe859b4
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): fix double slash in OG image URL for index pages

When slugs array is empty, getOgImageUrl was producing URLs like /og/reference//image.png instead of /og/reference/image.png. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 27, 2026 at 23:41 UTC 32fe859b4af4b83cebf37aa8e3fe66cd76436da6
1 file changed +2 -1
docs/lib/source.ts
+2 -1
@@ -57,7 +57,8 @@ export function getOgImageUrl(section: string, slugs: string[], title?: string,
57 if (title) params.set('title', title);
58 if (description) params.set('description', description);
59 const query = params.toString() ? `?${params.toString()}` : '';
60 - return `/og/${section}/${slugs.join('/')}/image.png${query}`;
60 + const slugPath = slugs.length > 0 ? `${slugs.join('/')}/` : '';
61 + return `/og/${section}/${slugPath}image.png${query}`;
62 }
63
64 /**