account for the fact that the image index is delayed

This commit is contained in:
byte[] 2019-12-22 16:09:17 -05:00
parent 039db5a329
commit 187178cdd4

View file

@ -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