Skip to content

Comments

fix: open external LinkedIn link in new tab on author page#327

Open
agarwalpranav0711 wants to merge 1 commit intokeploy:mainfrom
agarwalpranav0711:fix/external-link-new-tab-clean
Open

fix: open external LinkedIn link in new tab on author page#327
agarwalpranav0711 wants to merge 1 commit intokeploy:mainfrom
agarwalpranav0711:fix/external-link-new-tab-clean

Conversation

@agarwalpranav0711
Copy link

🐛 Fix: External LinkedIn link opens in same tab

Problem

On the author details page, the external LinkedIn link was opening in the same browser tab.
This redirected users away from the blog website.

Root Cause

The <Link> component was being used for an external URL without specifying:

  • target="_blank"
  • rel="noopener noreferrer"

Solution

Replaced the Next.js <Link> component with a standard <a> tag and added:

  • target="_blank"
  • rel="noopener noreferrer"

This ensures:

  • External links open in a new tab
  • Users remain on the blog website
  • Proper security best practices are followed

Files Modified

  • components/author-description.jsx

Fixes: keploy/keploy#3796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: External link is opening in the same tab instead of a new tab

1 participant