From 19905f44c7b7d89476a41f2002c6ed4f98d81117 Mon Sep 17 00:00:00 2001 From: Jamie Gaskins Date: Wed, 29 Sep 2021 10:01:53 -0500 Subject: [PATCH] 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. --- app/views/stories/articles_search/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/stories/articles_search/index.html.erb b/app/views/stories/articles_search/index.html.erb index 16b17ca39..43be7da72 100644 --- a/app/views/stories/articles_search/index.html.erb +++ b/app/views/stories/articles_search/index.html.erb @@ -20,7 +20,7 @@

- Search results <%= "for #{params[:q]}" unless params[:q].empty? %> + Search results <%= "for #{params[:q]}" unless params[:q].blank? %>