diff --git a/src/components/cards/CardMenuEntries.vue b/src/components/cards/CardMenuEntries.vue index fc03071bd..467489ba6 100644 --- a/src/components/cards/CardMenuEntries.vue +++ b/src/components/cards/CardMenuEntries.vue @@ -157,6 +157,9 @@ export default { this.$store.dispatch('deleteCard', this.card) const undoCard = { ...this.card, deletedAt: 0 } showUndo(t('deck', 'Card deleted'), () => this.$store.dispatch('cardUndoDelete', undoCard)) + if (this.$router.currentRoute.name === 'card') { + this.$router.push({ name: 'board' }) + } }, changeCardDoneStatus() { this.$store.dispatch('changeCardDoneStatus', { ...this.card, done: !this.card.done })