diff --git a/routes/tags.cpp b/routes/tags.cpp index 5a51350..44fcf24 100644 --- a/routes/tags.cpp +++ b/routes/tags.cpp @@ -74,7 +74,7 @@ static inline Element generate_header(const httplib::Request& req, const Config& }) }); if (!search_suggestions.empty()) { - header.nodes.push_back(generate_search_suggestions(req, config, tags, search_suggestions, search_results.illusts.total_illusts == 0)); + header.nodes.push_back(generate_search_suggestions(req, config, tags, search_suggestions, search_results.illusts.total_pages <= 1)); } header.nodes.push_back(Element("br"));