Fix fulltext search link in kiwix-serve suggestions (#268)

Fix fulltext search link in kiwix-serve suggestions
This commit is contained in:
Matthieu Gautier 2019-09-04 17:17:34 +02:00 committed by GitHub
commit c031547461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
kiwix-lib 6.0.3 kiwix-lib 6.0.3
=============== ===============
* fix fulltext search link in suggestions
* UI fixes in kiwix-serve rendering * UI fixes in kiwix-serve rendering
kiwix-lib 6.0.2 kiwix-lib 6.0.2

View File

@ -519,7 +519,7 @@ Response InternalServer::handle_suggest(const RequestContext& request)
if (reader->hasFulltextIndex()) { if (reader->hasFulltextIndex()) {
kainjow::mustache::data result; kainjow::mustache::data result;
result.set("label", "containing '" + term + "'..."); result.set("label", "containing '" + term + "'...");
result.set("value", term); result.set("value", term + " ");
result.set("first", first); result.set("first", first);
results.push_back(result); results.push_back(result);
} }