Skip to content

Commit 9aeb679

Browse files
committed
fix(router): avoid ambiguous library alias route
1 parent d7cc3ac commit 9aeb679

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/routes/_library/$libraryId/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { redirect, createFileRoute } from '@tanstack/react-router'
33
export const Route = createFileRoute('/_library/$libraryId/')({
44
beforeLoad: ({ params }) => {
55
throw redirect({
6-
to: '/$libraryId/$version',
7-
params: { libraryId: params.libraryId, version: 'latest' } as never,
6+
href: `/${params.libraryId}/latest`,
87
})
98
},
109
})

0 commit comments

Comments
 (0)