Allow search endpoint to be used without q param (#14856)
If you didn't specify `q=`, this template would raise an error. For some reason, I could only replicate this with the `?i=i` query param, though.
This commit is contained in:
parent
8cbbc222e9
commit
19905f44c7
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<div class="block s:flex items-center justify-between">
|
||||
<h1 class="crayons-title hidden s:block pl-2">
|
||||
Search results <%= "for #{params[:q]}" unless params[:q].empty? %>
|
||||
Search results <%= "for #{params[:q]}" unless params[:q].blank? %>
|
||||
</h1>
|
||||
|
||||
<nav id="sorting-option-tabs" aria-label="Search result sort options" class="-mx-3 m:mx-0">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue