fix client profile links (#2247)
This commit is contained in:
parent
86bd4c5dc3
commit
fc4ce1201d
1 changed files with 6 additions and 1 deletions
|
@ -36,6 +36,8 @@ import type ClientPolicyRepresentation from "@keycloak/keycloak-admin-client/lib
|
||||||
import { toNewClientPolicyCondition } from "./routes/AddCondition";
|
import { toNewClientPolicyCondition } from "./routes/AddCondition";
|
||||||
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
|
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
|
||||||
import { toEditClientPolicyCondition } from "./routes/EditCondition";
|
import { toEditClientPolicyCondition } from "./routes/EditCondition";
|
||||||
|
import { toClientProfile } from "./routes/ClientProfile";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
EditClientPolicyParams,
|
EditClientPolicyParams,
|
||||||
toEditClientPolicy,
|
toEditClientPolicy,
|
||||||
|
@ -667,7 +669,10 @@ export default function NewClientPolicyForm() {
|
||||||
<Link
|
<Link
|
||||||
key={profile}
|
key={profile}
|
||||||
data-testid="profile-name-link"
|
data-testid="profile-name-link"
|
||||||
to={""}
|
to={toClientProfile({
|
||||||
|
realm,
|
||||||
|
profileName: profile,
|
||||||
|
})}
|
||||||
className="kc-profile-link"
|
className="kc-profile-link"
|
||||||
>
|
>
|
||||||
{profile}
|
{profile}
|
||||||
|
|
Loading…
Reference in a new issue