From e10e8315724a16c43d5737a789610e87bbe4fb13 Mon Sep 17 00:00:00 2001 From: Dheeraj Kumar Ketireddy Date: Thu, 11 Sep 2025 17:29:40 +0530 Subject: [PATCH 1/2] fix: update redirection path in MagicSignInEndpoint to home page --- apps/api/plane/authentication/views/app/magic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/plane/authentication/views/app/magic.py b/apps/api/plane/authentication/views/app/magic.py index 4b1bdb02e2a..c6eb3f2f0ce 100644 --- a/apps/api/plane/authentication/views/app/magic.py +++ b/apps/api/plane/authentication/views/app/magic.py @@ -107,7 +107,8 @@ def post(self, request): # Login the user and record his device info user_login(request=request, user=user, is_app=True) if user.is_password_autoset and profile.is_onboarded: - path = "accounts/set-password" + # Redirect to the home page + path = "" else: # Get the redirection path path = ( From 993f6328725ad2ef64e94eed2d8a38f1a5f788d7 Mon Sep 17 00:00:00 2001 From: Dheeraj Kumar Ketireddy Date: Thu, 11 Sep 2025 17:42:54 +0530 Subject: [PATCH 2/2] Use / for clarity --- apps/api/plane/authentication/views/app/magic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/plane/authentication/views/app/magic.py b/apps/api/plane/authentication/views/app/magic.py index c6eb3f2f0ce..61591439db5 100644 --- a/apps/api/plane/authentication/views/app/magic.py +++ b/apps/api/plane/authentication/views/app/magic.py @@ -108,7 +108,7 @@ def post(self, request): user_login(request=request, user=user, is_app=True) if user.is_password_autoset and profile.is_onboarded: # Redirect to the home page - path = "" + path = "/" else: # Get the redirection path path = (