diff --git a/src/main.js b/src/main.js index 3c9f9b19834176e2fb9860941670f881242fb4ab..1ab6a5a1bf7777d7cd756ccee09a10d3c3d8ea88 100644 --- a/src/main.js +++ b/src/main.js @@ -36,6 +36,27 @@ const router = new VueRouter({ path: '', component: DictionaryView, children: [ + { + path: 'bob/*', + redirect: to => { + return "bm/" + to.params.pathMatch + } + }, + { + path: 'nob/*', + redirect: to => { + console.log(to) + return "nn/" + to.params.pathMatch + } + }, + { + path: 'bob,nob/*', + redirect: to => { + console.log(to) + return "bm,nn/" + to.params.pathMatch + } + }, + { path: ':lang', children: [