feat: add redirect for old list routes
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
5283b871db
commit
c9a492e4e9
|
@ -268,6 +268,19 @@ const router = createRouter({
|
||||||
showOverdue: route.query.showOverdue === 'true',
|
showOverdue: route.query.showOverdue === 'true',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// Redirect old list routes to the respective project routes
|
||||||
|
// see: https://router.vuejs.org/guide/essentials/dynamic-matching.html#catch-all-404-not-found-route
|
||||||
|
path: '/lists:pathMatch(.*)*',
|
||||||
|
name: 'lists',
|
||||||
|
redirect(to) {
|
||||||
|
return {
|
||||||
|
path: to.path.replace('/lists', '/projects'),
|
||||||
|
query: to.query,
|
||||||
|
hash: to.hash,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/projects/new/:namespaceId/',
|
path: '/projects/new/:namespaceId/',
|
||||||
name: 'project.create',
|
name: 'project.create',
|
||||||
|
|
Reference in New Issue