Skip to content

Commit

Permalink
fix: Open docs externally (#18643)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Nov 15, 2023
1 parent 746cdbf commit c49309e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ export const SidePanelDocs = (): JSX.Element => {
<LemonButton
size="small"
sideIcon={<IconExternal />}
to={currentUrl}
targetBlank
onClick={() => closeSidePanel()}
// We can't use the normal `to` property as that is intercepted to open this panel :D
onClick={() => {
window.open(currentUrl, '_blank')?.focus()
closeSidePanel()
}}
>
Open in new tab
</LemonButton>
Expand Down

0 comments on commit c49309e

Please sign in to comment.