Fix mocksContext

This commit is contained in:
Joseph Garrone 2021-03-26 17:30:04 +01:00
parent 07ee0ecb8b
commit 69fa49848a

View File

@ -9,8 +9,8 @@ import { resourcesCommonPath, resourcesPath } from "./urlResourcesPath";
export const kcTemplateContext: KcContext.Template = { export const kcTemplateContext: KcContext.Template = {
"url": { "url": {
"loginAction": "#", "loginAction": "#",
"resourcesPath": "/" + resourcesPath, "resourcesPath": `/${resourcesPath}`,
"resourcesCommonPath": "/" + resourcesCommonPath, "resourcesCommonPath": `${process.env["PUBLIC_URL"]}/${resourcesCommonPath}`,
"loginRestartFlowUrl": "/auth/realms/myrealm/login-actions/restart?client_id=account&tab_id=HoAx28ja4xg", "loginRestartFlowUrl": "/auth/realms/myrealm/login-actions/restart?client_id=account&tab_id=HoAx28ja4xg",
"loginUrl": "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg", "loginUrl": "/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg",
}, },