mirror of
1
Fork 0
forgejo/options
Gusted 4c641b0fb2 feat: improve incorrect `ROOT_URL` warning (#7103)
- In the case that the `ROOT_URL` does not match the site a person is visiting Forgejo gives zero guarantees that any of the functionality will still work.
- Make the error i18n, use `local_next`.
- Reflect in the error that the any part of the application can break, don't be specific - it is plain wrong and should not be used.
- Always check for this case on the login page. This was previously only the case if OAuth2 was enabled, but this code was checking for elements that are always present on the login page regardless if the OAuth2 was enabled or not. Technically nothing changed, but reading the code it is now more clear when this check is being run.
- Add E2E testing.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7103
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-03-03 18:05:01 +00:00
..
gitignore Update Zig gitignore (#7005) 2025-02-21 08:25:08 +00:00
label Add missing exclusive in advanced label options (#28322) 2024-01-22 07:56:17 +00:00
license [skip ci] Updated licenses and gitignores 2024-09-14 17:05:52 +02:00
locale i18n(en): a few source fixes (#7089) 2025-03-02 00:16:29 +00:00
locale_next feat: improve incorrect `ROOT_URL` warning (#7103) 2025-03-03 18:05:01 +00:00
readme