Skip to content
Snippets Groups Projects
Commit 7642c6c5 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Add .json to navigate_to_article request

parent 063b805a
No related branches found
No related tags found
No related merge requests found
......@@ -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 = []
......
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