mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
fixes: #31038 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> (cherry picked from commit ffbfb7450f72602425c12df344aabb74c8f901fe) Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
9b2bf7dd58
commit
5390367b06
@ -43,7 +43,7 @@ describe("convertClientToUrl", () => {
|
||||
);
|
||||
|
||||
//then
|
||||
expect(result).toBe("/admin");
|
||||
expect(result).toBe("/admin/something");
|
||||
});
|
||||
|
||||
it("when baseUrl when rootUrl is not set", () => {
|
||||
|
||||
@ -16,7 +16,10 @@ export const convertClientToUrl = (
|
||||
}
|
||||
|
||||
if (rootUrl === "${authBaseUrl}") {
|
||||
return rootUrl.replace(/\$\{(authBaseUrl)\}/, environment.serverBaseUrl);
|
||||
return joinPath(
|
||||
rootUrl.replace(/\$\{(authBaseUrl)\}/, environment.serverBaseUrl),
|
||||
baseUrl || "",
|
||||
);
|
||||
}
|
||||
|
||||
if (rootUrl?.startsWith("http")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user