Skip to content

Commit

Permalink
Fix auth redirect with specific base url path (livebook-dev#2516)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueslorentz authored and spunkedy committed Apr 22, 2024
1 parent c4961c8 commit ef4a87f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/livebook_web/controllers/auth_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion lib/livebook_web/live/hub/edit_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ef4a87f

Please sign in to comment.