diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 18eb142f3b743e099e0ca9656685c20d6a0cf331..003322c1e05722405804901d47e87d69215a545d 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -137,7 +137,7 @@ function navigate_to_article(self, source) { } function navigate_to_search(self, query) { - axios.get(self.api_pref + 'search?q=' + query) + axios.get(self.api_old + 'search?q=' + query) .then(function(response){ self.search_results = response.data if (! self.search_results.length) { @@ -162,7 +162,7 @@ function navigate_to_search(self, query) { } function navigate_to_word(self, word) { - axios.get(self.api_pref + 'suggest?q=' + word) + axios.get(self.api_old + 'suggest?q=' + word) .then(function(response){ self.search_results = response.data.filter(result => result.match == word).sort(compare_by_hgno(word)) if (! self.search_results.length) { @@ -207,6 +207,9 @@ export default { api_pref: function() { return oda_dev + '/' + this.lang + '/article/' }, + api_old: function() { + return api_endpoint + '/' + this.lang + '/article/' + }, get_oda_api: function() { return oda_api },