Skip to content

Commit

Permalink
fix: instance entry open target
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Aug 22, 2023
1 parent d65b0b0 commit 41efbb9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/GZCTF/ClientApp/src/components/InstanceEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,12 @@ export const InstanceEntry: FC<InstanceEntryProps> = (props) => {
withArrow
classNames={tooltipClasses}
>
<ActionIcon component="a" href={openUrl} target="_blank" rel="noreferrer">
<ActionIcon
component="a"
href={openUrl}
target={isPlatformProxy ? '_self' : '_blank'}
rel="noreferrer"
>
<Icon path={isPlatformProxy ? mdiOpenInApp : mdiOpenInNew} size={1} />
</ActionIcon>
</Tooltip>
Expand Down

0 comments on commit 41efbb9

Please sign in to comment.