From 240f1ea08ab712f170f55574ee9b6e1cab098a8d Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Wed, 5 Jan 2022 10:27:25 +0100 Subject: [PATCH] Revert "use internal lang state" This reverts commit 6681f24cb4322575765495836c683d67a4923aea. --- src/components/DictionaryView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 2455adcf..d0ad9401 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){ -- GitLab