Search/Fixup

* fix redirecting to result on exact hit
This commit is contained in:
Sarjuuk 2025-10-24 18:28:25 +02:00
parent 1a55b30766
commit 2f8e035783

View file

@ -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