Merge pull request #1977 from nextcloud/bugfix/noid/route-redirect

Redirect from previously used routes to the current ones
This commit is contained in:
Julius Härtl
2020-06-03 12:21:04 +02:00
committed by GitHub

View File

@@ -121,5 +121,22 @@ export default new Router({
},
],
},
// redirects to keep compatibility to 1.0.0 routes
{
path: '/boards/:id',
redirect: '/board/:id',
},
{
path: '/boards/:id/cards/:cardId',
redirect: '/board/:id/card/:cardId',
},
{
path: '/!/board/:id',
redirect: '/board/:id',
},
{
path: '/!/board/:id/card/:cardId',
redirect: '/board/:id/card/:cardId',
},
],
})