Skip to content

Commit

Permalink
Merge pull request #547 from devlink-sumanta/master
Browse files Browse the repository at this point in the history
Reddit Share button Update the submit URL
  • Loading branch information
nygardk authored Nov 12, 2024
2 parents 1d6cd0f + e4c1704 commit 02da2be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dirty-ladybugs-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": patch
---

This patch fixes an issue with the Reddit sharing functionality, where the shared link was not automatically populated in Reddit’s share preview. By appending /web before /submit in the Reddit share URL, the link now populates correctly, improving the user experience for Reddit sharing.
2 changes: 1 addition & 1 deletion src/RedditShareButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function redditLink(url: string, { title }: { title?: string }) {
assert(url, 'reddit.url');

return (
'https://www.reddit.com/submit' +
'https://www.reddit.com/web/submit' +
objectToGetParams({
url,
title,
Expand Down

0 comments on commit 02da2be

Please sign in to comment.