diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 2455adcf295a688831580916cdd2635663186e92..d0ad9401eff78773686b220423414900b65e1c24 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -110,10 +110,11 @@ function navigate_to_article(self, origin) { self.article = null self.waiting_for_articles = true + const lang = self.$route.params.lang - axios.get(ARTICLE_ENDPOINT + self.lang + '/article/' + self.$route.params.id + ".json") + axios.get(ARTICLE_ENDPOINT + lang + '/article/' + self.$route.params.id + ".json") .then(function(response){ - self.article = Object.assign(response.data, {'dictionary': self.lang, results: self.search_results}) + self.article = Object.assign(response.data, {'dictionary': lang, results: self.search_results}) self.error = null }) .catch(function(error){