authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Static access-denied page does not resolve themed branding asset paths

Open seh-len opened this issue 4 months ago • 0 comments

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

  1. Configure a brand logo using %(theme)s.
  2. Open an application for which the authenticated user has no access.
  3. 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


seh-len avatar Jul 16 '26 21:07 seh-len