Skip to content

Commit

Permalink
Open external link in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo-Duke committed May 3, 2024
1 parent aa9e077 commit 9398157
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/details.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ export default function DetailsPageUI({ content }: Props) {

<div dangerouslySetInnerHTML={{ __html: content.description }} />
{content?.url && (
<LinkAsButton className="mx-auto mt-4 block w-fit" href={content?.url}>
<LinkAsButton
target="_blank"
className="mx-auto mt-4 block w-fit"
href={content?.url}
>
{t('link')}
</LinkAsButton>
)}
Expand Down

0 comments on commit 9398157

Please sign in to comment.