diff --git a/frontend/src/components/task/task-table.js b/frontend/src/components/task/task-table.js index c8aa20fa..b03769f0 100644 --- a/frontend/src/components/task/task-table.js +++ b/frontend/src/components/task/task-table.js @@ -176,7 +176,7 @@ class CustomPaginationActionsTable extends React.Component { }; handleClickListItem = task => { - const url = `/task/${task.id}/${slugify(task.title)}` + const url = this.props.user?.id ? `/profile/task/${task.id}/${slugify(task.title)}` : `/task/${task.id}/${slugify(task.title)}` this.props.history.push(url) }