diff --git a/ChangeLog b/ChangeLog index 6be739259..a75c66815 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ Improvements: Bug fixes: +* Fixed wrong URL on comment toggle link for sorting * Fixed form submission with Meta+Enter keyboard shortcut * Removed PHP notices in comment suppression view diff --git a/app/Controller/Comment.php b/app/Controller/Comment.php index ff7ec3058..0b39f390b 100644 --- a/app/Controller/Comment.php +++ b/app/Controller/Comment.php @@ -173,6 +173,6 @@ class Comment extends Base $order = $this->userSession->getCommentSorting() === 'ASC' ? 'DESC' : 'ASC'; $this->userSession->setCommentSorting($order); - $this->response->redirect($this->helper->url->href('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'comments')); + $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), 'comments')); } }