Skip to content

Commit adfbb8a

Browse files
Update frontend/src/components/Footer.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 32ffbfb commit adfbb8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Footer: React.FC<IFooter> = ({ footerData }) => {
3636
className={clsx(hoverScaleUp, "w-max")}
3737
key={name}
3838
href={url}
39-
target={url.trim().startsWith("http") ? "_blank" : ""}
39+
target={/^https?:\/\//.test(url) ? "_blank" : undefined}
4040
rel="noopener noreferrer"
4141
>
4242
{name}

0 commit comments

Comments
 (0)