From 69fa49848a7f2eaa864546f9306e06a30421d088 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Fri, 26 Mar 2021 17:30:04 +0100 Subject: [PATCH] Fix mocksContext --- src/lib/kcContextMocks/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/kcContextMocks/index.ts b/src/lib/kcContextMocks/index.ts index bc8365de..bc3f07d7 100644 --- a/src/lib/kcContextMocks/index.ts +++ b/src/lib/kcContextMocks/index.ts @@ -9,8 +9,8 @@ import { resourcesCommonPath, resourcesPath } from "./urlResourcesPath"; export const kcTemplateContext: KcContext.Template = { "url": { "loginAction": "#", - "resourcesPath": "/" + resourcesPath, - "resourcesCommonPath": "/" + resourcesCommonPath, + "resourcesPath": `/${resourcesPath}`, + "resourcesCommonPath": `${process.env["PUBLIC_URL"]}/${resourcesCommonPath}`, "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", },