Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/components/shared/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ function MoonIcon(props) {
function MobileNavItem({ href, children }) {
return (
<li>
<Popover.Button as={Link} href={href} className="block py-2">
<Popover.Button
as={Link}
href={href}
target={href.startsWith('http') ? '_blank' : undefined}
rel={href.startsWith('http') ? 'noopener noreferrer' : undefined}
className="block py-2"
>
{children}
</Popover.Button>
</li>
Expand Down Expand Up @@ -144,6 +150,8 @@ function NavItem({ href, children }) {
<li>
<Link
href={href}
target={href.startsWith('http') ? '_blank' : undefined}
rel={href.startsWith('http') ? 'noopener noreferrer' : undefined}
className={clsx(
'relative block px-3 py-2 transition',
isActive
Expand Down