From 50f8c33dd4c214ec94a8087f490efe02fbf94143 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 29 Jun 2021 21:59:35 +0200 Subject: [PATCH] replace router.push with router.replace with replace you can't return to the previous page which is what we want after a form. --- src/pages/coaches/CoachRegistration.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/coaches/CoachRegistration.vue b/src/pages/coaches/CoachRegistration.vue index 4c39fbe..0ebf27b 100644 --- a/src/pages/coaches/CoachRegistration.vue +++ b/src/pages/coaches/CoachRegistration.vue @@ -14,7 +14,7 @@ export default { methods: { saveData(data) { this.$store.dispatch('coaches/registerCoach', data); - this.$router.push('/coaches'); + this.$router.replace('/coaches'); } } };