Skip to content

Commit

Permalink
Merge pull request #1213 from opentripplanner/fix-account-help-link
Browse files Browse the repository at this point in the history
fix(NavLoginButton): Make help link valid when running locally
  • Loading branch information
binh-dam-ibigroup authored May 20, 2024
2 parents 45d51f6 + 84334a4 commit b0576a9
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 b0576a9

Please sign in to comment.