diff --git a/inc/fulltext.php b/inc/fulltext.php
index c4d8a7ea737e57ed75fdb2e8c98ed6fa64c5f502..a68770277502c94023e460c9c2a1565d095f22cf 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -242,7 +242,7 @@ function _ft_pageLookup(&$data){
         $cleaned = cleanID($id);
         $matched_pages = array();
         foreach ($pages as $p_id => $p_title) {
-            if ((strpos($in_ns ? $p_id : noNS($p_id), $cleaned) !== false) ||
+            if ((strpos($in_ns ? $p_id : noNSorNS($p_id), $cleaned) !== false) ||
                 ($in_title && stripos($p_title, $id) !== false)) {
                 $matched_pages[$p_id] = $p_title;
             }