diff --git a/inc/Ui/Search.php b/inc/Ui/Search.php
index c27cd77642d56dd9d99648024d22b4ec836b0a49..f430a2ae15c3de3441e240bfc02a90b79730335c 100644
--- a/inc/Ui/Search.php
+++ b/inc/Ui/Search.php
@@ -525,7 +525,11 @@ class Search extends Ui
         $html .= '<h3>' . $lang['quickhits'] . ':</h3>';
         $html .= '<ul class="search_quickhits">';
         foreach ($data as $id => $title) {
-            $link = html_wikilink(':' . $id);
+            $name = null;
+            if (!useHeading('navigation') && $ns = getNS($id)) {
+                $name = shorten(noNS($id), ' (' . $ns . ')', 30);
+            }
+            $link = html_wikilink(':' . $id, $name);
             $eventData = [
                 'listItemContent' => [$link],
                 'page' => $id,