From 2f8e035783ff2b18eab0f1b37d6dd4e8f41b0651 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Fri, 24 Oct 2025 18:28:25 +0200 Subject: [PATCH] Search/Fixup * fix redirecting to result on exact hit --- endpoints/search/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/search/search.php b/endpoints/search/search.php index edf8cb73..5a134613 100644 --- a/endpoints/search/search.php +++ b/endpoints/search/search.php @@ -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