Skip to content

Commit 11b0654

Browse files
committed
fix: hotfix for complex versions urls
1 parent b6c7c1f commit 11b0654

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/utils/router.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export function packageRoute(packageName: string, version?: string | null): Rout
99
params: {
1010
org,
1111
name,
12-
version,
12+
// remove spaces to be correctly resolved by router
13+
version: version.replace(/\s+/g, ''),
1314
},
1415
}
1516
}

0 commit comments

Comments
 (0)