Skip to content

Commit 36d5ddd

Browse files
authored
Merge branch 'main' into kylemathews/db
2 parents b71eac3 + c8b0107 commit 36d5ddd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/DocsLayout.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ const useMenuConfig = ({
186186
children: [
187187
{
188188
label: 'Home',
189-
to: '..',
189+
to: '/$libraryId/$version',
190190
},
191191
...(frameworks.length > 1
192192
? [
193193
{
194194
label: 'Frameworks',
195-
to: './framework',
195+
to: '/$libraryId/$version/docs/framework',
196196
},
197197
]
198198
: []),
@@ -399,7 +399,11 @@ export function DocsLayout({
399399
</a>
400400
) : (
401401
<Link
402-
to="/$libraryId/$version/docs/$"
402+
to={
403+
child.to.startsWith('/')
404+
? child.to
405+
: '/$libraryId/$version/docs/$'
406+
}
403407
params={{
404408
libraryId,
405409
version: params.version || 'latest',

0 commit comments

Comments
 (0)