From 36cd613cbe37b2a54096afcbc7257b8d2f52042e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 3 Jun 2020 07:52:32 +0200 Subject: [PATCH] Redirect from previously used routes to the current ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/router.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/router.js b/src/router.js index e1bd1c81e..3d42dd0aa 100644 --- a/src/router.js +++ b/src/router.js @@ -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', + }, ], })