From 574ed578bc1f8c90cfa65d8066b09ba27e747726 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Tue, 24 Mar 2020 22:48:11 +0100 Subject: [PATCH] Prefer router.replace if you delete sth. @ogerly, this is a perfect example where `this.$router.replace` makes a lot more sense that `this.$router.push`. When you go back in your browser history, you won't get 404 not found error. --- webapp/components/Modal/DeleteUserModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/components/Modal/DeleteUserModal.vue b/webapp/components/Modal/DeleteUserModal.vue index 536aa2390..c2e40a721 100644 --- a/webapp/components/Modal/DeleteUserModal.vue +++ b/webapp/components/Modal/DeleteUserModal.vue @@ -142,7 +142,7 @@ export default { setTimeout(() => { this.success = false this.$emit('close') - this.$router.history.push('/') + this.$router.history.replace('/') }, 500) }, 1500) this.loading = false