mirror of
1
Fork 0
forgejo/options/locale_next
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
..
locale_ar.json
locale_be.json
locale_bg.json
locale_bn.json
locale_bs.json
locale_ca.json
locale_cs-CZ.json
locale_da.json
locale_de-DE.json
locale_el-GR.json
locale_en-US.json feat: improve incorrect `ROOT_URL` warning (#7103) 2025-03-03 18:05:01 +00:00
locale_eo.json
locale_es-ES.json
locale_et.json
locale_fa-IR.json
locale_fi-FI.json
locale_fil.json
locale_fr-FR.json
locale_gl.json
locale_hi.json
locale_hu-HU.json
locale_id-ID.json
locale_is-IS.json
locale_it-IT.json
locale_ja-JP.json
locale_ko-KR.json
locale_lt.json
locale_lv-LV.json
locale_ml-IN.json
locale_nb_NO.json
locale_nds.json
locale_nl-NL.json
locale_pl-PL.json
locale_pt-BR.json
locale_pt-PT.json
locale_ru-RU.json
locale_si-LK.json
locale_sk-SK.json
locale_sl.json
locale_sr-SP.json
locale_sv-SE.json
locale_tr-TR.json
locale_uk-UA.json
locale_vi.json
locale_yi.json
locale_zh-CN.json
locale_zh-HK.json
locale_zh-TW.json