We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0128dc commit ea1e9f6Copy full SHA for ea1e9f6
app/models/search/tag_search_form.rb
@@ -46,9 +46,14 @@ def set_fandoms
46
end
47
48
def set_wrangling_status
49
- return unless @options[:canonical]
+ return unless @options[:canonical].present?
50
51
- @options[:wrangling_status] = "canonical"
+ # Match old behavior for canonical param
52
+ if %w(true 1 T).include?(@options[:canonical].to_s)
53
+ @options[:wrangling_status] = "canonical"
54
+ else
55
+ @options[:wrangling_status] = "noncanonical"
56
+ end
57
58
59
def sort_columns
0 commit comments