File tree Expand file tree Collapse file tree 1 file changed +10
-19
lines changed
Expand file tree Collapse file tree 1 file changed +10
-19
lines changed Original file line number Diff line number Diff 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 } }
You can’t perform that action at this time.
0 commit comments