mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
chore: fix slug prepend
This commit is contained in:
1 parent
876f841a7c
commit
f63aed54ec
1 file changed
+2
-1
@@ -38,7 +38,8 @@ function reshapeResult(row: unknown): DocsSearchV2Result | null {
|
||||
const slug = row.slug as string
|
||||
return {
|
||||
id: `${slug}#${row.heading as string}`,
|
||||
path: slug ? `/docs/${slug}` : '/docs',
|
||||
// Next's router already prepends the app's basePath ('/docs'), so don't add it here.
|
||||
path: slug ? `/${slug}` : '/',
|
||||
title: row.page_title as string,
|
||||
heading: row.heading as string,
|
||||
excerpt: row.excerpt as string,
|
||||
|
||||
Reference in new issue
Block a user