From 3a364bde6170597295a6cd991f998b372b081956 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 20 Dec 2019 20:08:53 -0500 Subject: [PATCH] explicitly halt the pipeline --- lib/philomena_web/controllers/image_controller.ex | 1 + 1 file changed, 1 insertion(+) 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