From a1fc48ad3c211059589706a084bd8dcd4329632f Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 17 Oct 2019 12:51:39 +0200 Subject: [PATCH] chore: add redirection to exploration --- explorations/html5.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/explorations/html5.ts b/explorations/html5.ts index 1c3451cd..58e70a7f 100644 --- a/explorations/html5.ts +++ b/explorations/html5.ts @@ -185,7 +185,8 @@ router.afterEach((to, from) => { router.beforeEach((to, from, next) => { // console.log('second guard') - next() + if (to.query.to) next(to.query.to as string) + else next() }) const dirLog = { -- 2.47.2