httpd: let the login page fetch its translations

login.html asks for i18n.js, but the file is not on the short list a
client may have before it authenticates, so the request is answered with
a redirect back to the login page and the strings stay as the English
that is baked into the markup.

The file carries only the interface text, the same text the page already
ships untranslated, so serving it before login gives nothing away.
This commit is contained in:
d00f committed 2026-09-03 01:12:56 +02:00
1 parent 4c8e0ce975
commit 5a55524115
1 file changed
+1
+1
View File
@@ -994,6 +994,7 @@ void httpd_appcall(void)
if (!authenticated && !(f_data[entry].start == FDATA_START_login_html
|| f_data[entry].start == FDATA_START_port_svg
|| f_data[entry].start == FDATA_START_sfp_svg
|| f_data[entry].start == FDATA_START_i18n_js
|| f_data[entry].start == FDATA_START_style_css)) {
send_to_login();
goto do_send;