Skip to content

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

fix slug in endpoint url

Inian9a0fd7955f42
diff --git a/studio/pages/project/[ref]/functions/[id]/details.tsx b/studio/pages/project/[ref]/functions/[id]/details.tsx
index 5623003b4aa..1825abd5fc6 100644
--- a/studio/pages/project/[ref]/functions/[id]/details.tsx
+++ b/studio/pages/project/[ref]/functions/[id]/details.tsx
@@ -136,14 +136,14 @@ const PageLayout = () => {
<div>
<span className="block text-scale-900 text-xs mb-1">Endpoint url</span>
<Link
- href={`https://${ref}.functions.supabase.co/${selectedFunction?.name}`}
+ href={`https://${ref}.functions.supabase.co/${selectedFunction?.slug}`}
passHref
>
<a
className="flex items-center gap-2 group text-scale-1100 hover:text-scale-1200"
target="_target"
>
- <span className="underline">{`https://${ref}.functions.supabase.co/${selectedFunction?.name}`}</span>
+ <span className="underline">{`https://${ref}.functions.supabase.co/${selectedFunction?.slug}`}</span>
<IconExternalLink size={14} />
</a>
</Link>