Skip to content

Commit 8518f5e

Browse files
committed
Make the Close button of 404 page redirect to the main view - Fixes #233
1 parent 159e271 commit 8518f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/views/Error.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
mounted(){
8585
// stop OTP generation on modal close
8686
this.$on('modalClose', function() {
87-
window.history.length > 1 ? this.$router.go(-1) : this.$router.push({ name: 'accounts '})
87+
window.history.length > 1 && this.$route.name !== '404' ? this.$router.go(-1) : this.$router.push({ name: 'accounts' })
8888
});
8989
9090
},

0 commit comments

Comments
 (0)