Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

add canonical URL option to guides meta data

dshukertjr0976f9ba7bd5
diff --git a/apps/docs/layouts/guides/index.tsx b/apps/docs/layouts/guides/index.tsx
index d5c1c811305..20885e68d8c 100644
--- a/apps/docs/layouts/guides/index.tsx
+++ b/apps/docs/layouts/guides/index.tsx
@@ -17,6 +17,7 @@ interface Props {
hide_table_of_contents?: boolean
breadcrumb?: string
subtitle?: string
+ canonical?: string
}
children: any
toc?: any
@@ -67,7 +68,7 @@ const Layout: FC<Props> = (props) => {
<NextSeo
title={`${props.meta?.title} | Supabase Docs`}
description={props.meta?.description ? props.meta?.description : props.meta?.title}
- canonical={`https://supabase.com/docs${asPath}`}
+ canonical={props.meta?.canonical ?? `https://supabase.com/docs${asPath}`}
openGraph={{
title: props.meta?.title,
description: props.meta?.description,