diff --git a/client/components/App.vue b/client/components/App.vue index 1b48cad2..f1230f9b 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -53,7 +53,15 @@ export default @Component({ rootRoute: function(newValue) { this.setAppTitle(); if ((this.mode == 'reader' || this.mode == 'omnireader') && (newValue != '/reader')) { - this.$router.replace('/reader'); + //старый url + const search = window.location.search.substr(1); + const url = search.split('url=')[1] || ''; + console.log(url); + if (url) { + window.location = `/#/reader?url=${url}`; + } else { + this.$router.replace('/reader'); + } } }, },