From 8518f5ebc5691d66bd4e8d09dc520fc53d1bcf0e Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Tue, 19 Sep 2023 21:12:41 +0200 Subject: [PATCH] Make the Close button of 404 page redirect to the main view - Fixes #233 --- resources/js/views/Error.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/views/Error.vue b/resources/js/views/Error.vue index 77c15b15..508ee902 100644 --- a/resources/js/views/Error.vue +++ b/resources/js/views/Error.vue @@ -84,7 +84,7 @@ mounted(){ // stop OTP generation on modal close this.$on('modalClose', function() { - window.history.length > 1 ? this.$router.go(-1) : this.$router.push({ name: 'accounts '}) + window.history.length > 1 && this.$route.name !== '404' ? this.$router.go(-1) : this.$router.push({ name: 'accounts' }) }); },