File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { join } from "path"
2
+
1
3
import { MDXRemoteProps } from "next-mdx-remote"
2
4
import type { HTMLAttributes } from "react"
3
5
@@ -120,6 +122,7 @@ export const DocsLayout = ({
120
122
} : DocsLayoutProps ) => {
121
123
const isPageIncomplete = ! ! frontmatter . incomplete
122
124
const absoluteEditPath = getEditPath ( slug )
125
+ const slugWithSlashes = join ( "/" , slug , "/" )
123
126
124
127
return (
125
128
< div className = "flex w-full flex-col border-b" >
@@ -133,7 +136,7 @@ export const DocsLayout = ({
133
136
className = "flex justify-between bg-background-highlight lg:pe-8"
134
137
dir = { contentNotTranslated ? "ltr" : "unset" }
135
138
>
136
- < SideNav path = { slug } />
139
+ < SideNav path = { slugWithSlashes } />
137
140
< MainArticle className = "min-w-0 flex-1 px-8 pb-8 pt-8 md:px-16 md:pb-16 md:pt-12" >
138
141
< H1 id = "top" > { frontmatter . title } </ H1 >
139
142
< FileContributors
You can’t perform that action at this time.
0 commit comments