Skip to content
Snippets Groups Projects
Commit 032de16c authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

feil i lasting av URL med .../w/...

parent 67f6686b
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ function navigate_to_search(self, query) { ...@@ -141,7 +141,7 @@ function navigate_to_search(self, query) {
function navigate_to_word(self, word) { function navigate_to_word(self, word) {
axios.get(self.api_pref + 'suggest?q=' + word) axios.get(self.api_pref + 'suggest?q=' + word)
.then(function(response){ .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) { if (! self.search_results.length) {
self.error = "Ordet '" + decodeURIComponent(word) + "' finnes ikke i ordbøkene" self.error = "Ordet '" + decodeURIComponent(word) + "' finnes ikke i ordbøkene"
} else { } else {
......
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