diff --git a/lib/philomena_web/controllers/image_controller.ex b/lib/philomena_web/controllers/image_controller.ex index 33f49be2..13d1338f 100644 --- a/lib/philomena_web/controllers/image_controller.ex +++ b/lib/philomena_web/controllers/image_controller.ex @@ -164,6 +164,7 @@ defmodule PhilomenaWeb.ImageController do conn |> put_flash(:info, "The image you were looking for has been marked a duplicate of the image below") |> redirect(to: Routes.image_path(conn, :show, image.duplicate_id)) + |> Plug.Conn.halt() true -> conn