diff --git a/src/components/Header/Tools.tsx b/src/components/Header/Tools.tsx index 514e33336..f43ed0f62 100644 --- a/src/components/Header/Tools.tsx +++ b/src/components/Header/Tools.tsx @@ -129,6 +129,10 @@ const Tools = () => { } }, [user]); + const supportOptionsUrl = () => { + return isITLessEnv ? 'https://redhatgov.servicenowservices.com/css' : 'https://access.redhat.com/support'; + }; + /* list out the items for the about menu */ const aboutMenuDropdownItems = [ { @@ -149,7 +153,7 @@ const Tools = () => { }, { title: intl.formatMessage(messages.supportOptions), - url: isITLessEnv ? 'https://redhatgov.servicenowservices.com/css' : 'https://access.redhat.com/support', + onClick: () => (window.location.href = supportOptionsUrl()), }, { title: intl.formatMessage(messages.insightsRhelDocumentation),