Support custom common path (#22717)
Signed-off-by: Kamontat Chantrachirathumrong <14089557+kamontat@users.noreply.github.com>
This commit is contained in:
parent
ab7426b857
commit
516bfbe896
1 changed files with 2 additions and 1 deletions
|
@ -190,6 +190,7 @@ public class WelcomeResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
|
String commonPath = themeProperties.getProperty("common", "common/keycloak");
|
||||||
|
|
||||||
map.put("bootstrap", bootstrap);
|
map.put("bootstrap", bootstrap);
|
||||||
map.put("adminConsoleEnabled", adminConsoleEnabled);
|
map.put("adminConsoleEnabled", adminConsoleEnabled);
|
||||||
|
@ -198,7 +199,7 @@ public class WelcomeResource {
|
||||||
map.put("baseUrl", session.getContext().getUri(UrlType.FRONTEND).getBaseUri());
|
map.put("baseUrl", session.getContext().getUri(UrlType.FRONTEND).getBaseUri());
|
||||||
map.put("productName", Version.NAME);
|
map.put("productName", Version.NAME);
|
||||||
map.put("resourcesPath", "resources/" + Version.RESOURCES_VERSION + "/" + theme.getType().toString().toLowerCase() +"/" + theme.getName());
|
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();
|
boolean isLocal = isLocal();
|
||||||
map.put("localUser", isLocal);
|
map.put("localUser", isLocal);
|
||||||
|
|
Loading…
Reference in a new issue