Support custom common path (#22717)

Signed-off-by: Kamontat Chantrachirathumrong <14089557+kamontat@users.noreply.github.com>
This commit is contained in:
Kamontat Chantrachirathumrong 2024-02-07 08:41:39 +07:00 committed by GitHub
parent ab7426b857
commit 516bfbe896
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,6 +190,7 @@ public class WelcomeResource {
}
Map<String, Object> map = new HashMap<>();
String commonPath = themeProperties.getProperty("common", "common/keycloak");
map.put("bootstrap", bootstrap);
map.put("adminConsoleEnabled", adminConsoleEnabled);
@ -198,7 +199,7 @@ public class WelcomeResource {
map.put("baseUrl", session.getContext().getUri(UrlType.FRONTEND).getBaseUri());
map.put("productName", Version.NAME);
map.put("resourcesPath", "resources/" + Version.RESOURCES_VERSION + "/" + theme.getType().toString().toLowerCase() +"/" + theme.getName());
map.put("resourcesCommonPath", "resources/" + Version.RESOURCES_VERSION + "/common/keycloak");
map.put("resourcesCommonPath", "resources/" + Version.RESOURCES_VERSION + "/" + commonPath);
boolean isLocal = isLocal();
map.put("localUser", isLocal);