From 032de16c3844d24ef7f0c919761498bc7ca85039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no> Date: Fri, 9 Apr 2021 10:04:11 +0200 Subject: [PATCH] feil i lasting av URL med .../w/... --- src/components/DictionaryView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index da21bfdb..86da2d20 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -141,7 +141,7 @@ function navigate_to_search(self, query) { function navigate_to_word(self, word) { axios.get(self.api_pref + 'suggest?q=' + word) .then(function(response){ - self.search_results = response.data.filter(result => result.match.length == word.length).sort(compare_by_hgno(word)) + self.search_results = response.data.filter(result => result.match == word).sort(compare_by_hgno(word)) if (! self.search_results.length) { self.error = "Ordet '" + decodeURIComponent(word) + "' finnes ikke i ordbøkene" } else { -- GitLab