From 13322c36a091bf3e20819395c28718fb858ddbe3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no>
Date: Thu, 14 Jan 2021 14:23:37 +0100
Subject: [PATCH] =?UTF-8?q?tillater=20/{lemma}=20p=C3=A5=20slutten=20av=20?=
 =?UTF-8?q?artikkel-url=20for=20=C3=A5=20gj=C3=B8re=20dem=20mer=20lesbare?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/App.vue | 2 +-
 src/main.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index c73c4993..4695fe2d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -154,7 +154,7 @@ export default {
       this.$refs.search.value = ''
       document.activeElement.blur()
       if(event.body){
-        this.$router.push('/' + event.dictionary + '/' + event.article_id + '#' + event.match)
+        this.$router.push('/' + event.dictionary + '/' + event.article_id + '/' + event.match)
         this.search_results = []
         this.article = event
         history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang}, '')
diff --git a/src/main.js b/src/main.js
index 81f06a89..03ca4fcc 100644
--- a/src/main.js
+++ b/src/main.js
@@ -21,7 +21,7 @@ const router = new VueRouter({
       component: App }, // No props, no nothing
     {
       name: 'lookup',
-      path: '/:lang/:id(\\d+)',
+      path: '/:lang/:id(\\d+)/:lemma?',
       component: App,
       props: true }, // Pass route.params to props
     {
-- 
GitLab