diff --git a/apps/web/app/_components/header/index.tsx b/apps/web/app/_components/header/index.tsx index a1b1879..cc6035e 100644 --- a/apps/web/app/_components/header/index.tsx +++ b/apps/web/app/_components/header/index.tsx @@ -29,10 +29,24 @@ const Header: React.FunctionComponent = () => { aria-label='Navigation menu' end={ diff --git a/apps/web/app/_components/richtext/index.tsx b/apps/web/app/_components/richtext/index.tsx index a9b116d..99f319d 100644 --- a/apps/web/app/_components/richtext/index.tsx +++ b/apps/web/app/_components/richtext/index.tsx @@ -158,8 +158,8 @@ export const RichText = ({ nodes }: RichTextProps): JSX.Element => { className='text-base md:text-lg text-sky-200 underline underline-offset-4 decoration-2 font-semibold hover:decoration-4' href={node.fields.url ?? '/'} key={index} - prefetch={false} - rel='nofollow noopener noreferrer' + prefetch={node.fields.url.includes('hungvu.tech')} + rel={node.fields.url.includes('hungvu.tech') ? undefined : 'nofollow noopener noreferrer'} target={node.fields.newTab ? '_blank' : undefined} > {serializedChildren} @@ -171,8 +171,7 @@ export const RichText = ({ nodes }: RichTextProps): JSX.Element => { className='text-base md:text-lg text-sky-200 underline underline-offset-4 decoration-2 font-semibold hover:decoration-4' href={node.fields.doc.value.settings.slug ?? '/'} key={index} - rel='dofollow' - target={node.newTab ? 'target="_blank"' : undefined} + target={node.newTab ? '_blank' : undefined} > {serializedChildren} diff --git a/apps/web/app/error.tsx b/apps/web/app/error.tsx index 2d134dc..af12460 100644 --- a/apps/web/app/error.tsx +++ b/apps/web/app/error.tsx @@ -34,6 +34,8 @@ const Error = ({ error }: { error: Error & { digest?: string }; reset: () => voi className='text-lg md:text-xl hover:font-semibold bg-emerald-950 py-1 w-[10rem] md:w-[12rem] rounded-md text-center' href='https://github.com/hunghvu/hungvu.tech/issues' prefetch={false} + target='_blank' + rel='nofollow noopener noreferrer' > Report on GitHub diff --git a/apps/web/app/not-found.tsx b/apps/web/app/not-found.tsx index 0ab3646..8a7a847 100644 --- a/apps/web/app/not-found.tsx +++ b/apps/web/app/not-found.tsx @@ -32,6 +32,8 @@ const NotFound = (): React.ReactNode => { className='text-lg md:text-xl hover:font-semibold bg-emerald-950 py-1 w-[10rem] md:w-[12rem] rounded-md text-center' href='https://github.com/hunghvu/hungvu.tech/issues' prefetch={false} + target='_blank' + rel='nofollow noopener noreferrer' > Report on GitHub