Merge pull request #4981 from dmacjam/fix_limited_search_results

FIX: limited search results
This commit is contained in:
Neil Lalonde
2017-07-31 20:23:57 -04:00
committed by GitHub
8 changed files with 148 additions and 55 deletions

View File

@ -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