Skip to content

Commit 5b5e69e

Browse files
committed
revert link
1 parent 7c7a99e commit 5b5e69e

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

src/components/DocsLayout.tsx

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -404,25 +404,16 @@ export function DocsLayout({
404404
</a>
405405
) : (
406406
<Link
407-
to={
408-
child.to.startsWith('/')
409-
? child.to
410-
: child.to.includes('framework/')
411-
? '/$libraryId/$version/docs/framework/$framework/$'
412-
: '/$libraryId/$version/docs/$'
413-
}
414-
params={{
415-
libraryId,
416-
version: params.version || 'latest',
417-
...(child.to.includes('framework/')
418-
? {
419-
framework: currentFramework,
420-
_splat: child.to.split('/').slice(2).join('/'),
421-
}
422-
: {
423-
_splat: child.to,
424-
}),
425-
}}
407+
to={
408+
child.to.startsWith('/')
409+
? child.to
410+
: '/$libraryId/$version/docs/$'
411+
}
412+
params={{
413+
libraryId,
414+
version: params.version || 'latest',
415+
_splat: child.to,
416+
}}
426417
onClick={() => {
427418
detailsRef.current.removeAttribute('open')
428419
}}

0 commit comments

Comments
 (0)