chore: fix slug prepend

This commit is contained in:
Jeremias Menichelli committed 2026-09-28 16:45:56 -03:00
1 parent 876f841a7c
commit f63aed54ec
1 file changed
+2 -1
+2 -1
View File
@@ -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,