Skip to content

Commit

Permalink
Make the Close button of 404 page redirect to the main view - Fixes #233
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubka committed Sep 24, 2023
1 parent 159e271 commit 8518f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/views/Error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
});
},
Expand Down

0 comments on commit 8518f5e

Please sign in to comment.