Skip to content
Snippets Groups Projects
Commit bf3bb359 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

redirect bob nob

parent 73b0fb80
No related branches found
No related tags found
No related merge requests found
......@@ -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: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment