Skip to content

Commit

Permalink
#2687 other attempt at target blank and ${user.username in single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
K committed May 23, 2024
1 parent 81e47b5 commit a31a813
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/core/client/components/NavigationLoggedIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,11 @@ export default function NavigationLoggedIn({ currentPath, onSignout, user }) {
</MenuItem>
<MenuItem
currentPath={currentPath}
path="https://notes.trustroots.org/#user=${user.username}"
target="_blank"
path='https://notes.trustroots.org/#user=${user.username}'
onClick={(event) => {
window.open('https://notes.trustroots.org/#user=${user.username}', "_blank");
event.preventDefault();
}}
className="hidden-xs"
>
{t('Notes')}
Expand Down

0 comments on commit a31a813

Please sign in to comment.