Skip to content

Commit 0677a1b

Browse files
committed
Reencode name and version when redirecting
1 parent 46a1d85 commit 0677a1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function configRoutes() {
248248
{
249249
path: 'projects/:name/:version',
250250
redirect: (to) => ({
251-
path: `/projects/${to.params.name}/${to.params.version}/`,
251+
path: `/projects/${encodeURIComponent(to.params.name)}/${encodeURIComponent(to.params.version)}/`,
252252
}),
253253
},
254254
{

0 commit comments

Comments
 (0)