Skip to content

Commit 4916f85

Browse files
authored
fix: hotfix for complex versions urls (#1874)
1 parent 2427057 commit 4916f85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)