fixed the url missed after refactoring (#31284)

fixes: #31244

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-07-15 15:31:01 +02:00 committed by GitHub
parent 0a5a08229f
commit fab9028caa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,18 +1,16 @@
import { ClipboardCopy, FormGroup } from "@patternfly/react-core";
import { useTranslation } from "react-i18next";
import { HelpItem } from "@keycloak/keycloak-ui-shared";
import { useAdminClient } from "../../admin-client";
import { HelpItem, useEnvironment } from "@keycloak/keycloak-ui-shared";
import { useRealm } from "../../context/realm-context/RealmContext";
import { addTrailingSlash } from "../../util";
export const RedirectUrl = ({ id }: { id: string }) => {
const { adminClient } = useAdminClient();
const { environment } = useEnvironment();
const { t } = useTranslation();
const { realm } = useRealm();
const callbackUrl = `${addTrailingSlash(
adminClient.baseUrl,
environment.serverBaseUrl,
)}realms/${realm}/broker`;
return (