From: Eduardo San Martin Morote Date: Thu, 17 Oct 2019 10:51:39 +0000 (+0200) Subject: chore: add redirection to exploration X-Git-Tag: v4.0.0-alpha.0~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1fc48ad3c211059589706a084bd8dcd4329632f;p=thirdparty%2Fvuejs%2Frouter.git chore: add redirection to exploration --- 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 = {