Make sure links open externally
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { ActionIcon, ActionIconProps } from './ActionIcon'
|
||||
import { openExternalBrowserIfDesktop } from 'lib/openWindow'
|
||||
import React, { ForwardedRef, forwardRef } from 'react'
|
||||
import { paths } from 'lib/paths'
|
||||
import { Link } from 'react-router-dom'
|
||||
@ -107,6 +108,7 @@ export const ActionButton = forwardRef((props: ActionButtonProps, ref) => {
|
||||
ref={ref as ForwardedRef<HTMLAnchorElement>}
|
||||
to={to || paths.INDEX}
|
||||
className={classNames}
|
||||
onClick={openExternalBrowserIfDesktop(to)}
|
||||
{...rest}
|
||||
target="_blank"
|
||||
>
|
||||
|
Reference in New Issue
Block a user