Skip to content

fix: open share links in new tab to keep users on site#611

Open
zerone0x wants to merge 1 commit intosatnaing:mainfrom
zerone0x:fix/share-links-open-in-new-tab
Open

fix: open share links in new tab to keep users on site#611
zerone0x wants to merge 1 commit intosatnaing:mainfrom
zerone0x:fix/share-links-open-in-new-tab

Conversation

@zerone0x
Copy link

Description

When users click on share links (Twitter, Facebook, etc.), the links now open in a new tab instead of navigating away from the current page. This keeps readers on the article while still allowing them to share content on social media.

Types of changes

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update (if none of the other choices apply)
  • Others (any other types not listed above)

Checklist

  • I have read the Contributing Guide
  • I have added the necessary documentation (if appropriate)
  • Breaking Change (fix or feature that would cause existing functionality to not work as expected)

Further comments

This is a minimal change that adds target="_blank" to the share links in ShareLinks.astro. The LinkButton component already supports all standard anchor attributes through HTMLAttributes<"a">, so this works seamlessly.

Related Issue

Closes: #566


🤖 Generated with Claude Code

When clicking share links, users are now kept on the article page
while the share destination opens in a new tab. This improves UX by
not navigating away from the current content.

Fixes satnaing#566

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant