search: remove legacy 'search[sort]' params.
Remove support for the `search[sort]` param on certain index pages. This hasn't been used for years, and it caused the `search[order]=` param to be added to pagination links even when the order was blank.
This commit is contained in:
@@ -101,7 +101,6 @@ class WikiPage < ApplicationRecord
|
||||
q = q.where("other_names is null or other_names = '{}'")
|
||||
end
|
||||
|
||||
params[:order] ||= params.delete(:sort)
|
||||
case params[:order]
|
||||
when "title"
|
||||
q = q.order("title")
|
||||
|
||||
Reference in New Issue
Block a user