diff --git a/frontend/src/views/Viewer.vue b/frontend/src/views/Viewer.vue index 1702cfcaf..afde7c4e6 100644 --- a/frontend/src/views/Viewer.vue +++ b/frontend/src/views/Viewer.vue @@ -34,7 +34,7 @@ export default { }, methods: { onClose() { - this.$router.go(-1); + location.replace('#/home' + location.hash.slice('#/viewer'.length, location.hash.lastIndexOf('/')+1)); }, async saveHandler(item, content) { await this.directoryModel.save(this.filePath, content);