Fix redirects (#1325)

Not a very elegant solution, but it should work.

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
qwerty287 2022-10-31 17:06:21 +01:00 committed by GitHub
parent aed3a80287
commit f2a37ce801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,20 @@ const routes: RouteRecordRaw[] = [
{
path: 'build/:pipelineId',
redirect: (route) => ({ name: 'repo-pipeline', params: route.params }),
children: [
{
path: ':procId?',
redirect: (route) => ({ name: 'repo-pipeline', params: route.params }),
},
{
path: 'changed-files',
redirect: (route) => ({ name: 'repo-pipeline-changed-files', params: route.params }),
},
{
path: 'config',
redirect: (route) => ({ name: 'repo-pipeline-config', params: route.params }),
},
],
},
],
},