The GitHub Actions job "Tests AMD" on airflow.git/main has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
12b16bc62ac2ef120d93f0aca6c0eddfe7836958 / Jed Cunningham 
<[email protected]>
Fix i18n requests ignoring base_url path configuration (#54008)

* Fix i18n requests ignoring base_url path configuration

When Airflow is deployed under a subpath (e.g., http://localhost:8080/foo),
i18n locale files were incorrectly requested from the root path instead of
respecting the configured base_url path. This caused translation files to
fail loading, resulting in untranslated UI text.

The fix ensures i18n requests properly honor the base_url path by dynamically
constructing the locale file paths based on the HTML base tag, similar to
how API requests are handled.

Fixes requests like:
- Before: http://localhost:8080/static/i18n/locales/en/assets.json
- After: http://localhost:8080/foo/static/i18n/locales/en/assets.json

* Refactor baseUrl definition

* fix(ui): use URL constructor for proper path normalization in i18n config

* Revert to original approach

---------

Co-authored-by: Ankit Chaurasia <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/16724859058

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to