Skip to content

Commit

Permalink
web: replace all occurences of the theme placeholder (cherry-pick goa…
Browse files Browse the repository at this point in the history
…uthentik#10749) (goauthentik#10750)

web: replace all occurences of the theme placeholder (goauthentik#10749)

Replace all occurences of the theme placeholder

This allows the placeholder to occur multiple times in the theme url.

Signed-off-by: Chasethechicken <[email protected]>
Co-authored-by: Chasethechicken <[email protected]>
  • Loading branch information
1 parent fb9aa9d commit ad6b6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/elements/utils/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export function themeImage(rawPath: string) {
? UiThemeEnum.Light
: UiThemeEnum.Dark;
}
return rawPath.replace("%(theme)s", enabledTheme);
return rawPath.replaceAll("%(theme)s", enabledTheme);
}

0 comments on commit ad6b6e4

Please sign in to comment.