Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Share link open in a new window or tab

1 participant