diff --git a/src/components/tasks/TaskDetailView.vue b/src/components/tasks/TaskDetailView.vue index 1c3cf814..1d8de57b 100644 --- a/src/components/tasks/TaskDetailView.vue +++ b/src/components/tasks/TaskDetailView.vue @@ -14,7 +14,7 @@
{{ parent.namespace.title }} > - + {{ parent.list.title }}
@@ -359,6 +359,7 @@ showDeleteModal: false, taskTitle: '', descriptionChanged: false, + listViewName: 'list.list', priorities: priorites, flatPickerConfig: { @@ -392,6 +393,13 @@ this.task = new TaskModel() }, mounted() { + + // Build the list path from the task detail name to send the user to the view they came from. + const parts = this.$route.name.split('.') + if (parts.length > 2 && parts[2] === 'detail') { + this.listViewName = `list.${parts[1]}` + } + this.loadTask() }, computed: {