Skip to content

Commit 02da2be

Browse files
authored
Merge pull request #547 from devlink-sumanta/master
Reddit Share button Update the submit URL
2 parents 1d6cd0f + e4c1704 commit 02da2be

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/dirty-ladybugs-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-share": patch
3+
---
4+
5+
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.

src/RedditShareButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function redditLink(url: string, { title }: { title?: string }) {
66
assert(url, 'reddit.url');
77

88
return (
9-
'https://www.reddit.com/submit' +
9+
'https://www.reddit.com/web/submit' +
1010
objectToGetParams({
1111
url,
1212
title,

0 commit comments

Comments
 (0)