Skip to content

Commit

Permalink
fix(NavLoginButton): Make help link valid when running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed May 16, 2024
1 parent dafde8c commit 76c30ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/components/user/nav-login-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ const NavLoginButton = ({
if (link.url.startsWith('http')) {
return (
<li key={link.url}>
<NavUnstyledLink href={link.url} target="_blank">
<NavUnstyledLink
// Bypass our Link component and directly render an <a> element here,
// so that the link works even when running the app locally.
as="a"
href={link.url}
target="_blank"
>
<FormattedMessage id="components.NavLoginButton.help" />
<NewWindowIconA11y
size={12}
Expand Down

0 comments on commit 76c30ba

Please sign in to comment.