From 0548c10293ddac68444bad261a43024eef48643b Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Sun, 22 Jun 2025 02:48:06 +0800 Subject: Add post-installation redirect based on admin account status (#34493) This PR adds a feature to direct users to appropriate pages after system installation: - If no admin credentials were provided during installation, redirect to the registration page with a prominent notice about creating the first administrative account - If admin credentials were already set, redirect directly to the login page ![4d396ad132d9b57fc4f45a62117177f1](https://github.com/user-attachments/assets/3a5d8700-9194-4d3b-a862-e64c8c347932) --------- Co-authored-by: wxiaoguang --- web_src/js/features/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web_src/js/features/install.ts') diff --git a/web_src/js/features/install.ts b/web_src/js/features/install.ts index 34df4757f9..ca4bcce881 100644 --- a/web_src/js/features/install.ts +++ b/web_src/js/features/install.ts @@ -104,7 +104,7 @@ function initPreInstall() { } function initPostInstall() { - const el = document.querySelector('#goto-user-login'); + const el = document.querySelector('#goto-after-install'); if (!el) return; const targetUrl = el.getAttribute('href'); -- cgit v1.2.3