From 187178cdd4bc9023a293ad93a5cffa198cd7e982 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 22 Dec 2019 16:09:17 -0500 Subject: [PATCH] account for the fact that the image index is delayed --- lib/philomena_web/controllers/image/navigate_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/image/navigate_controller.ex b/lib/philomena_web/controllers/image/navigate_controller.ex index 92ee2268..d47dd89f 100644 --- a/lib/philomena_web/controllers/image/navigate_controller.ex +++ b/lib/philomena_web/controllers/image/navigate_controller.ex @@ -32,7 +32,7 @@ defmodule PhilomenaWeb.Image.NavigateController do page_num = page_for_offset(pagination.page_size, images.total_entries) - redirect(conn, to: Routes.image_path(conn, :index, page: page_num)) + redirect(conn, to: Routes.search_path(conn, :index, q: "*", page: page_num)) end defp page_for_offset(per_page, offset) do