diff --git a/src/webui/search.php b/src/webui/search.php index d2466c7..1b2c125 100644 --- a/src/webui/search.php +++ b/src/webui/search.php @@ -82,7 +82,15 @@ if ($config->webui->search->index->request->url->enabled && filter_var($q, FILTE $index->addDocument( [ - 'url' => $url + 'url' => $url, + 'rank' => (int) mb_strlen( + urldecode( + parse_url( + $url, + PHP_URL_PATH + ) + ) + ) ], $crc32url );