From bd8287319d904fb8458a10410c8ea97f57821d15 Mon Sep 17 00:00:00 2001 From: Zack Fu Zi Xiang Date: Thu, 14 Nov 2024 12:14:38 +0800 Subject: [PATCH] fix: use htmx redirect instead --- admin_frontend/src/web_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_frontend/src/web_api.rs b/admin_frontend/src/web_api.rs index a6a2a4a7..a8fd0921 100644 --- a/admin_frontend/src/web_api.rs +++ b/admin_frontend/src/web_api.rs @@ -124,7 +124,7 @@ async fn open_app_handler( session.token.refresh_token, session.token.token_type, ); - Ok(Redirect::to(&app_sign_in_url).into_response()) + Ok(htmx_redirect(&app_sign_in_url).into_response()) } /// Delete the user account and all associated data.