diff --git a/src/common/kiwix/searcher.cpp b/src/common/kiwix/searcher.cpp index 0a751931..52ba6496 100644 --- a/src/common/kiwix/searcher.cpp +++ b/src/common/kiwix/searcher.cpp @@ -185,6 +185,10 @@ namespace kiwix { CDT page; page["start"] = i * this->resultCountPerPage; page["end"] = (i+1) * this->resultCountPerPage; + + if (i * this->resultCountPerPage == this->resultStart) + page["selected"] = true; + pagesCDT.PushBack(page); } oData["pages"] = pagesCDT; diff --git a/static/results.tmpl b/static/results.tmpl index 712f4a9d..2144530f 100644 --- a/static/results.tmpl +++ b/static/results.tmpl @@ -114,7 +114,7 @@