fix(web): fix doubled section prefix in doc links (404 on click)
CI / typecheck + build (turbo) (push) Canceled after 0s

Home page, search results, and doc page Related links all
generated hrefs as /${section}/${slug} but slug already
includes the section prefix (e.g. 'docs/websocket/contract'),
producing doubled URLs like /docs/docs/websocket/contract → 404.
Fix: href={`/${d.slug}`} everywhere.
This commit is contained in:
asepharyana committed 2026-08-20 12:33:35 +07:00
1 parent 9afd383eac
commit 2d974b8952
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ export default async function DocPage({
{related.map((r) => (
<li key={r.slug}>
<Link
href={`/${r.section}/${r.slug}`}
href={`/${r.slug}`}
className="hover:underline"
>
{r.title}