Skip to content

Commit

Permalink
Make JSX Menu links open in new tab (#9191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Ritter committed Feb 23, 2020
1 parent dee16de commit 78b1561
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions superset-frontend/src/components/Menu/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,21 @@ export default function Menu({
<Nav className="navbar-right">
{!navbarRight.user_is_anonymous && <NewMenu />}
{navbarRight.documentation_url && (
<NavItem href={navbarRight.documentation_url} title="Documentation">
<NavItem
href={navbarRight.documentation_url}
target="_blank"
title="Documentation"
>
<i className="fa fa-question" />
&nbsp;
</NavItem>
)}
{navbarRight.bug_report_url && (
<NavItem href={navbarRight.bug_report_url} title="Report a Bug">
<NavItem
href={navbarRight.bug_report_url}
target="_blank"
title="Report a Bug"
>
<i className="fa fa-bug" />
&nbsp;
</NavItem>
Expand Down

0 comments on commit 78b1561

Please sign in to comment.