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

Merge branch 'hotfix-lang-return-to-results' into dev

parents deb1d052 9f9e77b6
No related branches found
Tags release_2022-02-02_2
No related merge requests found
...@@ -241,6 +241,7 @@ export default { ...@@ -241,6 +241,7 @@ export default {
monthly_bm: null, monthly_bm: null,
monthly_nn: null, monthly_nn: null,
event: null, event: null,
previous: this.$route.fullPath,
} }
}, },
computed: { computed: {
...@@ -309,7 +310,7 @@ export default { ...@@ -309,7 +310,7 @@ export default {
} }
}, },
details_click: function(item) { details_click: function(item) {
item.article.source = this.$route.path item.article.source = this.previous
this.article = item.article this.article = item.article
history.replaceState({article: this.article, search_results: [], lang: this.lang, error: null}, '') history.replaceState({article: this.article, search_results: [], lang: this.lang, error: null}, '')
}, },
...@@ -317,6 +318,11 @@ export default { ...@@ -317,6 +318,11 @@ export default {
this.article = null this.article = null
} }
}, },
watch: {
$route(to, from) {
this.previous = from.fullPath
}
},
mounted: function(){ mounted: function(){
let self = this let self = this
this.lang = 'bm,nn' this.lang = 'bm,nn'
......
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