mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
redirect to profile path upon user edit instead
This commit is contained in:
parent
45402bd44f
commit
c806b08f0f
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ defmodule PhilomenaWeb.Admin.UserController do
|
|||
{:ok, _user} ->
|
||||
conn
|
||||
|> put_flash(:info, "User successfully updated.")
|
||||
|> redirect(to: Routes.admin_user_path(conn, :index))
|
||||
|> redirect(to: Routes.profile_path(conn, :show, conn.assigns.user))
|
||||
|
||||
{:error, %{user: changeset}} ->
|
||||
render(conn, "edit.html", changeset: changeset)
|
||||
|
|
Loading…
Reference in a new issue