There was an error while loading. Please reload this page.
2 parents a2d3ef2 + af06612 commit 6f489c8Copy full SHA for 6f489c8
1 file changed
src/components/Header.jsx
@@ -143,7 +143,7 @@ export default function Header(props) {
143
<a
144
key={item.name}
145
href={item.href}
146
- target="_blank"
+ target={item.href.startsWith('http') ? '_blank' : undefined}
147
className="no-underline block font-regular text-white"
148
>
149
<div
@@ -298,7 +298,9 @@ export default function Header(props) {
298
299
as="a"
300
301
+ target={
302
+ item.href.startsWith('http') ? '_blank' : undefined
303
+ }
304
className="no-underline block rounded-lg py-2 pr-3 pl-6 text-sm/7 font-regular text-black hover:bg-gray-50"
305
306
{item.name}
0 commit comments