Skip to content

Commit

Permalink
fix: Add target and rel attributes to footer links for security and u…
Browse files Browse the repository at this point in the history
…sability

- Updated footer links to include target='_blank' and rel='noopener noreferrer' attributes.
- Enhances security by preventing potential reverse tabnabbing and improves usability by ensuring links open in a new tab.
  • Loading branch information
kWAYTV committed Dec 5, 2024
1 parent f9fb690 commit 1856f0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export default function Footer() {
<li>
<a
href='/rss'
target='_blank'
rel='noopener noreferrer'
className='flex items-center hover:text-neutral-800 dark:hover:text-neutral-100'
>
<ArrowUpRight />
Expand All @@ -18,6 +20,8 @@ export default function Footer() {
<li>
<a
href={githubRepoUrl}
target='_blank'
rel='noopener noreferrer'
className='flex items-center hover:text-neutral-800 dark:hover:text-neutral-100'
>
<ArrowUpRight />
Expand Down

0 comments on commit 1856f0c

Please sign in to comment.