diff options
author | Kerwin Bryant <kerwin612@qq.com> | 2025-06-22 02:48:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-21 18:48:06 +0000 |
commit | 0548c10293ddac68444bad261a43024eef48643b (patch) | |
tree | ab48b23d9d69dc07ed19556768d9fe19f2a64be3 /web_src/js/features/install.ts | |
parent | 7de114a332c713eca9406da6c5a8eb02fe0c6f00 (diff) | |
download | gitea-0548c10293ddac68444bad261a43024eef48643b.tar.gz gitea-0548c10293ddac68444bad261a43024eef48643b.zip |
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

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/features/install.ts')
-rw-r--r-- | web_src/js/features/install.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |