Fix auth redirect with specific base url path (#2516)

This commit is contained in:
Jacques Lorentz 2024-03-21 17:08:19 +01:00 committed by GitHub
parent ccc69cbc3c
commit 2756606f5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ defmodule LivebookWeb.AuthController do
|> delete_session(:redirect_to)
|> redirect(to: redirect_to)
else
redirect(conn, to: "/")
redirect(conn, to: ~p"/")
end
end)
|> halt()

View file

@ -88,7 +88,7 @@ defmodule LivebookWeb.Hub.EditLive do
socket
|> put_flash(:success, "Hub deleted successfully")
|> push_navigate(to: "/")
|> push_navigate(to: ~p"/")
end
{:noreply,