authentik
authentik copied to clipboard
Static access-denied page does not resolve themed branding asset paths
Describe the bug
When a brand logo uses a themed filename such as:
brandings/gatekeeper-%(theme)s.png
the normal flow UI resolves the placeholder correctly. However, the static access-denied page requests the literal path containing %(theme)s.
The cause appears to be authentik/core/templates/login/base_full.html, which uses:
<img src="{{ brand.branding_logo_url }}">
instead of one of the pre-resolved themed URLs.
The static base template appears to have the same problem for the favicon, and potentially the flow background.
How to reproduce
- Configure a brand logo using
%(theme)s. - Open an application for which the authenticated user has no access.
- Inspect the logo request on the access-denied page.
The browser requests a URL such as:
/files/media/public/brandings/gatekeeper-%(theme)s.png
Expected behavior
The template should select the resolved light or dark asset according to the active theme.
Screenshots
No response
Additional context
No response
Deployment Method
Docker
Version
2026.5.5
Relevant log output