feature/rename-lists-to-projects__rebased #2978

Merged
konrad merged 15 commits from dpschen/frontend:feature/rename-lists-to-projects__rebased into main 2023-03-14 14:04:25 +00:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit c9a492e4e9 - Show all commits

View File

@ -268,6 +268,19 @@ const router = createRouter({
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/',
name: 'project.create',