Remove project_id from task URLs
This commit is contained in:
@@ -3,7 +3,7 @@ Kanboard
|
||||
|
||||
<?php if ($this->app->config('application_url') != ''): ?>
|
||||
<?php if (isset($task['id'])): ?>
|
||||
- <?= $this->url->absoluteLink(t('view the task on Kanboard'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
||||
- <?= $this->url->absoluteLink(t('view the task on Kanboard'), 'TaskViewController', 'show', array('task_id' => $task['id'])) ?>
|
||||
<?php endif ?>
|
||||
- <?= $this->url->absoluteLink(t('view the board on Kanboard'), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?>
|
||||
<?php endif ?>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<td style="border: 1px solid #eee;">#<?= $task['id'] ?></td>
|
||||
<td style="border: 1px solid #eee;">
|
||||
<?php if ($this->app->config('application_url') !== ''): ?>
|
||||
<?= $this->url->absoluteLink($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
||||
<?= $this->url->absoluteLink($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'])) ?>
|
||||
<?php else: ?>
|
||||
<?= $this->text->e($task['title']) ?>
|
||||
<?php endif ?>
|
||||
|
||||
Reference in New Issue
Block a user