Wizard: Fix activation keys URL

This updates activation keys URL to behave the same way the content one does.
This commit is contained in:
regexowl 2025-03-14 13:53:10 +01:00 committed by Michal Gold
parent 79b1b64322
commit 939f25474c
2 changed files with 3 additions and 8 deletions

View file

@ -19,8 +19,7 @@ import { useChrome } from '@redhat-cloud-services/frontend-components/useChrome'
import { addNotification } from '@redhat-cloud-services/frontend-components-notifications/redux';
import {
ACTIVATION_KEYS_PROD_URL,
ACTIVATION_KEYS_STAGE_URL,
ACTIVATION_KEYS_URL,
CDN_PROD_URL,
CDN_STAGE_URL,
} from '../../../../constants';
@ -85,7 +84,6 @@ export const PopoverActivation = () => {
};
const ManageKeysButton = () => {
const { isProd } = useGetEnvironment();
return (
<Button
component="a"
@ -94,7 +92,7 @@ const ManageKeysButton = () => {
icon={<ExternalLinkAltIcon />}
iconPosition="right"
isInline
href={isProd() ? ACTIVATION_KEYS_PROD_URL : ACTIVATION_KEYS_STAGE_URL}
href={ACTIVATION_KEYS_URL}
>
Activation keys page
</Button>

View file

@ -28,10 +28,7 @@ export const COMPLIANCE_PROD_URL =
'https://console.redhat.com/insights/compliance/scappolicies';
export const COMPLIANCE_STAGE_URL =
'https://console.stage.redhat.com/insights/compliance/scappolicies';
export const ACTIVATION_KEYS_PROD_URL =
'https://console.redhat.com/insights/connector/activation-keys';
export const ACTIVATION_KEYS_STAGE_URL =
'https://console.stage.redhat.com/insights/connector/activation-keys';
export const ACTIVATION_KEYS_URL = '/insights/connector/activation-keys';
export const COMPLIANCE_AND_VULN_SCANNING_URL =
'https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/security_guide/chap-compliance_and_vulnerability_scanning';
export const CREATING_IMAGES_WITH_IB_URL =