Skip to content

Commit

Permalink
fix(advisor-3041): fix for reportdetails
Browse files Browse the repository at this point in the history
  • Loading branch information
Fewwy committed May 25, 2023
1 parent 3c3c097 commit 48bb66f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ const ReportDetails: React.FC<ReportDetailsProps> = ({ report, kbaDetail, kbaLoa
const linkEditor = (url: string) => {
const linkToArray = url.split('/');
if (isProd()) {
return `https://access.redhat.com/solutions/${linkToArray.at(-1)}`;
return `https://access.redhat.com/${linkToArray.at(-2)}/${linkToArray.at(-1)}`;
} else {
return `https://access.stage.redhat.com/solutions/${linkToArray.at(-1)}`;
return `https://access.stage.redhat.com/${linkToArray.at(-2)}/${linkToArray.at(-1)}`;
}
};

Expand Down

0 comments on commit 48bb66f

Please sign in to comment.