Skip to content

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

@dhananjay6561
Copy link
Contributor

Hi @agarwalpranav0711
Thanks for the PR and for spotting this!

The change fixes a very minor UI issue. Since the scope of this PR is quite small, we’d recommend exploring a slightly broader improvement or addressing a larger issue and including this fix as part of that update.

Looking forward to seeing more from you!

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

2 participants