From 7642c6c5a4ee7a5e476b8bb8eaaa3add34051641 Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Fri, 24 Sep 2021 15:56:48 +0200 Subject: [PATCH] Add .json to navigate_to_article request --- src/components/DictionaryView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index d51dbc6..a6b588a 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -115,7 +115,7 @@ function navigate_to_article(self, source) { if ((self.$route.query.nocache || '').toLowerCase() == 'true') { config.headers.cachebuster = Date.now() } - axios.get(oda_dev + '/' + self.$route.params.lang + '/article/' + self.$route.params.id, config) + axios.get(oda_dev + '/' + self.$route.params.lang + '/article/' + self.$route.params.id + ".json", config) .then(function(response){ self.article = Object.assign(response.data, {'dictionary': self.$route.params.lang, source: source, results: self.search_results}) self.search_results = [] -- GitLab