Skip to content

Commit

Permalink
Use material ui link for login
Browse files Browse the repository at this point in the history
React router link doesn't work well with Shibboleth
  • Loading branch information
Keskimaki committed Apr 26, 2023
1 parent 4912b25 commit ac99c62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
Grow,
Popper,
Typography,
Link as ExternalLink,
} from '@mui/material'
import {
Language,
Expand Down Expand Up @@ -71,11 +72,11 @@ const NavBar = () => {
</Link>
)}
{location.pathname === '/public' && (
<Link to="/" style={{ textDecoration: 'none' }}>
<ExternalLink href="/" style={{ textDecoration: 'none' }}>
<Button>
<LoginOutlined sx={navStyles.icon} /> {t('login')}
</Button>
</Link>
</ExternalLink>
)}
<Button
ref={anchorRef}
Expand Down

0 comments on commit ac99c62

Please sign in to comment.