Skip to content

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

docs: Update redirect-urls.mdx (#27200)

Kamil Ogórek7a99354c9117
diff --git a/apps/docs/content/guides/auth/redirect-urls.mdx b/apps/docs/content/guides/auth/redirect-urls.mdx
index c9debda4d91..dbdb1a94e5e 100644
--- a/apps/docs/content/guides/auth/redirect-urls.mdx
+++ b/apps/docs/content/guides/auth/redirect-urls.mdx
@@ -64,9 +64,9 @@ const getURL = () => {
process?.env?.NEXT_PUBLIC_VERCEL_URL ?? // Automatically set by Vercel.
'http://localhost:3000/'
// Make sure to include `https://` when not localhost.
- url = url.includes('http') ? url : `https://${url}`
+ url = url.startsWith('http') ? url : `https://${url}`
// Make sure to include a trailing `/`.
- url = url.charAt(url.length - 1) === '/' ? url : `${url}/`
+ url = url.endsWith('/') ? url : `${url}/`
return url
}