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

fix return to results issue

parent 8430a4fc
No related branches found
No related tags found
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