From 7099102a79b7bebabb6bcc8485e696bd7feeded1 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 31 Jul 2023 11:30:52 +0200 Subject: [PATCH] filemanager: do not rely on history when closing viewers --- frontend/src/views/Viewer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);