Have Coherence redirect to a specific page on completing /sessions/new

I’m using this tutorial here: http://www.akitaonrails.com/2016/12/06/coherence-and-exadmin-devise-and-activeadmin-for-phoenix

Currently, the site redirects to /admin but I would like for it to redirect to /. How can I set this up? Thanks in advance.

To change path after create new session in your_app_web/controllers/coherence/redirects.ex add:

def session_create(conn, _), do: redirect(conn, to: landing_path(conn, :index))

and uncomment

import AuthenticopBackendAppWeb.Router.Helpers