explicitly halt the pipeline

This commit is contained in:
byte[] 2019-12-20 20:08:53 -05:00
parent 5e99152837
commit 3a364bde61

View file

@ -164,6 +164,7 @@ defmodule PhilomenaWeb.ImageController do
conn conn
|> put_flash(:info, "The image you were looking for has been marked a duplicate of the image below") |> 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)) |> redirect(to: Routes.image_path(conn, :show, image.duplicate_id))
|> Plug.Conn.halt()
true -> true ->
conn conn