Skip to content

Commit 46a1d85

Browse files
WIStudentCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Tobias Trumm <tobias@tobiastrumm.de>
1 parent 0bad0e7 commit 46a1d85

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/router/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function configRoutes() {
230230
? `/${to.params.pathMatch}`
231231
: '';
232232
next({
233-
path: `projects/${result.data.uuid}${trailingPathSegments}`,
233+
path: `/projects/${result.data.uuid}${trailingPathSegments}`,
234234
replace: true,
235235
});
236236
})
@@ -247,7 +247,9 @@ function configRoutes() {
247247
},
248248
{
249249
path: 'projects/:name/:version',
250-
redirect: 'projects/:name/:version/',
250+
redirect: (to) => ({
251+
path: `/projects/${to.params.name}/${to.params.version}/`,
252+
}),
251253
},
252254
{
253255
path: 'components',

0 commit comments

Comments
 (0)