diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 2b9337630e9dcceeb5cd92576505c3ce8b19c7d7..f3c25a50288d16adb45fa861cd7f61c0954e47b1 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -280,9 +280,12 @@ export default { }, update_lang_form: function (lang) { this.lang = lang - if (! this.article) { + if(this.$route.name == 'word') { navigate_to_word(this, this.$route.params.word) } + else if (this.$route.name == 'search') { + navigate_to_search(this, this.$route.params.query) + } }, article_link_click: function(item) { if (this.article && this.article.article_id == item.article_id){