fix client profile links (#2247)

This commit is contained in:
mfrances17 2022-03-14 06:15:03 -04:00 committed by GitHub
parent 86bd4c5dc3
commit fc4ce1201d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,8 @@ import type ClientPolicyRepresentation from "@keycloak/keycloak-admin-client/lib
import { toNewClientPolicyCondition } from "./routes/AddCondition";
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
import { toEditClientPolicyCondition } from "./routes/EditCondition";
import { toClientProfile } from "./routes/ClientProfile";
import {
EditClientPolicyParams,
toEditClientPolicy,
@ -667,7 +669,10 @@ export default function NewClientPolicyForm() {
<Link
key={profile}
data-testid="profile-name-link"
to={""}
to={toClientProfile({
realm,
profileName: profile,
})}
className="kc-profile-link"
>
{profile}