Skip to content

Commit 27b0b70

Browse files
committed
fix Home and Frameworks links
1 parent ed70bb6 commit 27b0b70

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/DocsLayout.tsx

Lines changed: 3 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,7 @@ export function DocsLayout({
399399
</a>
400400
) : (
401401
<Link
402-
to="/$libraryId/$version/docs/$"
402+
to={child.to.startsWith('/') ? child.to : "/$libraryId/$version/docs/$"}
403403
params={{
404404
libraryId,
405405
version: params.version || 'latest',

0 commit comments

Comments
 (0)