From f08e47809658f622712849fe4b6e708b12c58cec Mon Sep 17 00:00:00 2001 From: Bazire Houssin Date: Tue, 14 Nov 2017 15:14:15 +0100 Subject: [PATCH] Adding default route --- app/routes/home-routes.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/routes/home-routes.js b/app/routes/home-routes.js index 7535bb2..fe9f30a 100644 --- a/app/routes/home-routes.js +++ b/app/routes/home-routes.js @@ -36,7 +36,16 @@ const routes = [ { path: 'event/:id/results', component: StatsView + }, + { + path: ':token', + indexRoute: { + onEnter: ({ params }, replace) => { + replace(`${__BASE_URL__}home`); + } + } } + // { // path: 'inscription', // component: () => ()