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 f470358 commit 7c30f9aCopy full SHA for 7c30f9a
lib/algora_web/controllers/oauth_callback_controller.ex
@@ -38,7 +38,11 @@ defmodule AlgoraWeb.OAuthCallbackController do
38
39
:redirect ->
40
conn = AlgoraWeb.UserAuth.put_current_user(conn, user)
41
- AlgoraWeb.Util.redirect_safe(conn, data[:return_to] || AlgoraWeb.UserAuth.signed_in_path(conn))
+
42
+ AlgoraWeb.Util.redirect_safe(
43
+ conn,
44
+ data[:return_to] || get_session(conn, :user_return_to) || AlgoraWeb.UserAuth.signed_in_path(conn)
45
+ )
46
end
47
else
48
{:error, reason} ->
0 commit comments