Skip to content

Commit

Permalink
Merge pull request #2674 from RedHatInsights/fix-supportoptions-link
Browse files Browse the repository at this point in the history
fix support options link
  • Loading branch information
Hyperkid123 authored Nov 2, 2023
2 parents 88ed9a1 + a8ffe60 commit 5f6dd39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Header/Tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand All @@ -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),
Expand Down

0 comments on commit 5f6dd39

Please sign in to comment.