Redirect from previously used routes to the current ones

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-06-03 07:52:32 +02:00
parent 92f3f7c1fd
commit 36cd613cbe

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',
},
],
})