Skip to content

Commit

Permalink
Fix generating view links from searchTag API.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 20, 2019
1 parent aae42e4 commit 73f5dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Api.php
Expand Up @@ -1517,7 +1517,7 @@ public function searchTags($names, $max = 10, $from = 0,
}

$return = array();
$redirectUrl = Horde::url('redirect.php');
$redirectUrl = Horde::url('view.php', true);
foreach ($results as $task_id) {
try {
$task = $injector->getInstance('Nag_Factory_Driver')
Expand All @@ -1526,7 +1526,7 @@ public function searchTags($names, $max = 10, $from = 0,
$return[] = array(
'title' => $task->name,
'desc' => $task->description,
'view_url' => $redirectUrl->add('b', $task->id),
'view_url' => $redirectUrl->add('uid', $task->uid),
'app' => 'nag'
);
} catch (Exception $e) {
Expand Down

0 comments on commit 73f5dbd

Please sign in to comment.