diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index da21bfdb88e3de930500cdb72d80fd9c0fda0e14..86da2d20cd4909e4b2cb3235eb7150f137603efa 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 {