From 3bf4372f0f13c914137d47123449a5266ecec07a Mon Sep 17 00:00:00 2001 From: Luna D Date: Thu, 19 Dec 2019 17:59:16 -0500 Subject: [PATCH] fix error in Profile.UserLinksController --- lib/philomena_web/controllers/profile/user_link_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/profile/user_link_controller.ex b/lib/philomena_web/controllers/profile/user_link_controller.ex index c0f7e7a9..7db1bd6f 100644 --- a/lib/philomena_web/controllers/profile/user_link_controller.ex +++ b/lib/philomena_web/controllers/profile/user_link_controller.ex @@ -40,7 +40,7 @@ defmodule PhilomenaWeb.Profile.UserLinkController do {:ok, user_link} -> conn |> put_flash(:info, "Link submitted! Please put '#{user_link.verification_code}' on your linked webpage now.") - |> redirect(to: Routes.profile_user_link_path(conn, :show, conn.assigns.user_link, user_link)) + |> redirect(to: Routes.profile_user_link_path(conn, :show, conn.assigns.user, user_link)) {:error, %Ecto.Changeset{} = changeset} -> render(conn, "new.html", changeset: changeset)