diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 1c359923..57c365e8 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -339,7 +339,9 @@ export default { }, 500), close() { this.$store.commit("updateRequest", {}); - history.back(); + + let uri = url.removeLastDir(this.$route.path) + "/"; + this.$router.push({ path: uri }); }, download() { api.download(null, this.$route.path);