Fix some issue dur to url rewriting
This commit is contained in:
@@ -72,8 +72,7 @@ class HipchatWebhook extends \Core\Base
|
||||
$html .= $this->projectActivity->getTitle($event);
|
||||
|
||||
if ($this->config->get('application_url')) {
|
||||
$html .= '<br/><a href="'.$this->config->get('application_url');
|
||||
$html .= $this->helper->url->href('task', 'show', array('task_id' => $task_id, 'project_id' => $project_id)).'">';
|
||||
$html .= '<br/><a href="'.$this->helper->url->href('task', 'show', array('task_id' => $task_id, 'project_id' => $project_id), false, '', true).'">';
|
||||
$html .= t('view the task on Kanboard').'</a>';
|
||||
}
|
||||
|
||||
|
||||
@@ -81,8 +81,7 @@ class Jabber extends \Core\Base
|
||||
$payload = '['.$project['name'].'] '.str_replace('"', '"', $this->projectActivity->getTitle($event)).(isset($event['task']['title']) ? ' ('.$event['task']['title'].')' : '');
|
||||
|
||||
if ($this->config->get('application_url')) {
|
||||
$payload .= ' '.$this->config->get('application_url');
|
||||
$payload .= $this->helper->url->to('task', 'show', array('task_id' => $task_id, 'project_id' => $project_id));
|
||||
$payload .= ' '.$this->helper->url->to('task', 'show', array('task_id' => $task_id, 'project_id' => $project_id), false, '', true);
|
||||
}
|
||||
|
||||
$this->sendMessage($project_id, $payload);
|
||||
|
||||
@@ -83,8 +83,7 @@ class SlackWebhook extends \Core\Base
|
||||
);
|
||||
|
||||
if ($this->config->get('application_url')) {
|
||||
$payload['text'] .= ' - <'.$this->config->get('application_url');
|
||||
$payload['text'] .= $this->helper->url->href('task', 'show', array('task_id' => $task_id, 'project_id' => $project_id));
|
||||
$payload['text'] .= ' - <'.$this->helper->url->href('task', 'show', array('task_id' => $task_id, 'project_id' => $project_id), false, '', true);
|
||||
$payload['text'] .= '|'.t('view the task on Kanboard').'>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user