We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d709d4e commit bd82703Copy full SHA for bd82703
lib/live_admin/components/container.ex
@@ -5,6 +5,7 @@ defmodule LiveAdmin.Components.Container do
5
import LiveAdmin,
6
only: [
7
resource_title: 2,
8
+ route_with_params: 1,
9
route_with_params: 2,
10
trans: 1
11
]
@@ -90,7 +91,12 @@ defmodule LiveAdmin.Components.Container do
90
91
92
LiveAdmin.session_store().persist!(new_session)
93
- {:noreply, assign(socket, :session, new_session)}
94
+ socket =
95
+ socket
96
+ |> assign(:session, new_session)
97
+ |> push_navigate(to: route_with_params(socket.assigns))
98
+
99
+ {:noreply, socket}
100
end
101
102
def render(assigns = %{loading: true}), do: ~H""
0 commit comments