Quellcode durchsuchen

refactor: when deleting your account you'll be redirected to home

Kristian Vos vor 3 Jahren
Ursprung
Commit
1cf40bb640
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      frontend/src/components/modals/RemoveAccount.vue

+ 1 - 1
frontend/src/components/modals/RemoveAccount.vue

@@ -250,7 +250,7 @@ export default {
 						lofig.get("cookie").then(cookie => {
 							document.cookie = `${cookie.SIDname}=;expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
 							this.closeModal("removeAccount");
-							return window.location.reload();
+							window.location.href = "/";
 						})
 					);
 				}