From 7b07e91ea396350af5183c093f28e6893379f3cf Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Tue, 8 Aug 2023 12:54:20 -0500 Subject: [PATCH] Fix crash --- elixir/apps/web/lib/web/auth.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elixir/apps/web/lib/web/auth.ex b/elixir/apps/web/lib/web/auth.ex index 6e5853049..ebcc34f4b 100644 --- a/elixir/apps/web/lib/web/auth.ex +++ b/elixir/apps/web/lib/web/auth.ex @@ -247,7 +247,7 @@ defmodule Web.Auth do socket = socket |> Phoenix.LiveView.put_flash(:error, "You must log in to access this page.") - |> Phoenix.LiveView.redirect(to: ~p"/#{socket.assigns.account}/sign_in") + |> Phoenix.LiveView.redirect(to: ~p"/#{params["account_id_or_slug"]}/sign_in") {:halt, socket} end