diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 74a087bcc64e6ddda3461c42bca78d2b3306a342..d66da6fa919c7223cfe69353c998a54ca5f2eb1e 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -241,6 +241,7 @@ export default { monthly_bm: null, monthly_nn: null, event: null, + previous: this.$route.fullPath, } }, computed: { @@ -309,7 +310,7 @@ export default { } }, details_click: function(item) { - item.article.source = this.$route.path + item.article.source = this.previous this.article = item.article history.replaceState({article: this.article, search_results: [], lang: this.lang, error: null}, '') }, @@ -317,6 +318,11 @@ export default { this.article = null } }, + watch: { + $route(to, from) { + this.previous = from.fullPath + } + }, mounted: function(){ let self = this this.lang = 'bm,nn'