diff --git a/lib/philomena_web/controllers/image/related_controller.ex b/lib/philomena_web/controllers/image/related_controller.ex index b7a9ba60..9cb3b3eb 100644 --- a/lib/philomena_web/controllers/image/related_controller.ex +++ b/lib/philomena_web/controllers/image/related_controller.ex @@ -54,7 +54,7 @@ defmodule PhilomenaWeb.Image.RelatedController do ImageLoader.query( conn, query, - sorts: [%{_score: :desc}], + sorts: &%{query: &1, sorts: [%{_score: :desc}]}, pagination: %{conn.assigns.image_pagination | page_number: 1} )