Skip to content

Commit a12f4f9

Browse files
V VV V
authored andcommitted
fix: revert to absolute hrefs for SSG nav links — relative hrefs break with trailing-slash redirects
1 parent 5b44fb4 commit a12f4f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/docs/server/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function toViewModel(state: DocsState, path?: string) {
3636
slug: doc.slug,
3737
title: doc.meta.title || doc.slug,
3838
active: doc.slug === slug,
39-
href: doc.slug,
39+
href: '/' + doc.slug,
4040
}));
4141

4242
return {

0 commit comments

Comments
 (0)