Skip to content

Commit

Permalink
feat: deeplinks to CADT open in new tab or window
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Dec 7, 2022
1 parent d9f9448 commit c3f0e23
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/blocks/UnitDetailedView.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,17 @@ const UnitDetailedView = ({
/>
);
} else if ('registry_project_id'.includes(key)) {
return <a href={unit.projectLink}>{value.toString()}</a>;
return (
<a href={unit.projectLink} target="_blank" rel="noreferrer">
{value.toString()}
</a>
);
} else if ('project_name'.includes(key)) {
return (
<a
href={`http://localhost:3001/#/projects?orgUid=${unit.orgUid}&myRegistry=true&projectId=${unit.warehouseProjectId}`}
target="_blank"
rel="noreferrer"
>
{value.toString()}
</a>
Expand Down

0 comments on commit c3f0e23

Please sign in to comment.