From bf3bb359af9ac17fc22e22ac3c9eddc65f55f239 Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Wed, 3 Nov 2021 17:57:27 +0100
Subject: [PATCH] redirect bob nob

---
 src/main.js | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/src/main.js b/src/main.js
index 3c9f9b19..1ab6a5a1 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: [
-- 
GitLab