Skip to content

fix(settings): resolve static asset URLs through STATIC_URL#45

Merged
tdruez merged 1 commit intomainfrom
resolve-static
Apr 21, 2026
Merged

fix(settings): resolve static asset URLs through STATIC_URL#45
tdruez merged 1 commit intomainfrom
resolve-static

Conversation

@tdruez
Copy link
Copy Markdown
Contributor

@tdruez tdruez commented Apr 21, 2026

ALTCHA_JS_URL and ALTCHA_JS_TRANSLATIONS_URL were hardcoded to /static/... paths, breaking projects that customize STATIC_URL, use ManifestStaticFilesStorage, or serve assets from a CDN.

Defaults are now relative paths resolved through django.templatetags.static.static() at read time. Absolute paths (starting with /) and full URLs (http://, https://) are passed through unchanged, matching the convention used by Django's form Media class.

Signed-off-by: tdruez <tdruez@aboutcode.org>
@tdruez tdruez merged commit 0eb77f0 into main Apr 21, 2026
8 checks passed
@tdruez tdruez deleted the resolve-static branch April 21, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant