mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add pagination and checking for more results to search.
This commit is contained in:
@@ -13,7 +13,10 @@ class SearchController < ApplicationController
|
||||
type_filter: 'topic',
|
||||
guardian: guardian,
|
||||
include_blurbs: true,
|
||||
blurb_length: 300
|
||||
blurb_length: 300,
|
||||
page: if params[:page].to_i <= 10
|
||||
[params[:page].to_i, 1].max
|
||||
end
|
||||
}
|
||||
|
||||
context, type = lookup_search_context
|
||||
|
||||
Reference in New Issue
Block a user