Search/Fixup
* fix redirecting to result on exact hit
This commit is contained in:
parent
1a55b30766
commit
2f8e035783
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class SearchBaseResponse extends TemplateResponse implements ICache
|
|||
$this->lvTabs->addListviewTab(new Listview(...$lvData));
|
||||
|
||||
// we already have a target > can't have more targets > no redirects
|
||||
if ($canRedirect && $redirectTo)
|
||||
if (($canRedirect && $redirectTo) || count($lvData[0]['data']) > 1)
|
||||
$canRedirect = false;
|
||||
|
||||
if ($canRedirect) // note - we are very lucky that in case of searches $template is identical to the typeString
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue