Mock kcContext.url.resourcePath for account v3
This commit is contained in:
parent
2ab2c9e05e
commit
b5d5002061
@ -34,6 +34,14 @@ kcContext.pageId = "${pageId}";
|
|||||||
if( kcContext.url && kcContext.url.resourcesPath ){
|
if( kcContext.url && kcContext.url.resourcesPath ){
|
||||||
kcContext.url.resourcesCommonPath = kcContext.url.resourcesPath + "/" + "RESOURCES_COMMON_cLsLsMrtDkpVv";
|
kcContext.url.resourcesCommonPath = kcContext.url.resourcesPath + "/" + "RESOURCES_COMMON_cLsLsMrtDkpVv";
|
||||||
}
|
}
|
||||||
|
if( kcContext.resourceUrl && !kcContext.url ){
|
||||||
|
Object.defineProperty(kcContext, "url", {
|
||||||
|
value: {
|
||||||
|
resourcesPath: kcContext.resourceUrl
|
||||||
|
},
|
||||||
|
enumerable: false
|
||||||
|
});
|
||||||
|
}
|
||||||
kcContext["x-keycloakify"] = {};
|
kcContext["x-keycloakify"] = {};
|
||||||
<#if profile?? && profile.attributes??>
|
<#if profile?? && profile.attributes??>
|
||||||
kcContext["x-keycloakify"].realmMessageBundleUserProfile = {
|
kcContext["x-keycloakify"].realmMessageBundleUserProfile = {
|
||||||
@ -428,6 +436,14 @@ function decodeHtmlEntities(htmlStr){
|
|||||||
|
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
|
<#if themeType == "account" && are_same_path(path, ["realm", "isInternationalizationEnabled"])>
|
||||||
|
<#attempt>
|
||||||
|
<#return realm.isInternationalizationEnabled()?c>
|
||||||
|
<#recover>
|
||||||
|
<#return "ABORT: Couldn't evaluate realm.isInternationalizationEnabled()">
|
||||||
|
</#attempt>
|
||||||
|
</#if>
|
||||||
|
|
||||||
<#return "ABORT: It's a method">
|
<#return "ABORT: It's a method">
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user