react-share icon indicating copy to clipboard operation
react-share copied to clipboard

Reddit share goes to Page not found

Open BaDo2001 opened this issue 9 months ago • 5 comments

I can see this when using RedditShareButton

Image

Maybe it's related to #547 because removing the /web part seems to fix the link.

BaDo2001 avatar Mar 28 '25 10:03 BaDo2001

#572 I ran into the same issue and opened a PR

monika-with-a-k avatar Mar 28 '25 21:03 monika-with-a-k

Same issue here. When can we fix it? Thanks

luuuufan avatar Mar 31 '25 19:03 luuuufan

I've set our version to "react-share": "5.1.0", which is the version before #547 was merged, and it seems to work fine. I think this may have been a temporary change on Reddit's side which has been reverted since then.

BaDo2001 avatar Apr 03 '25 09:04 BaDo2001

If you remove "/web" from link, it works good!

index.cjs > line 655-661

function redditLink(url, { title }) { assert(url, "reddit.url"); return "https://www.reddit.com/web/submit" + objectToGetParams({ url, title }); }

MuhammadRehanRasool avatar May 14 '25 01:05 MuhammadRehanRasool

Same issue. One of my collaboration mates suggested this page. Finally, editing the file solved @MuhammadRehanRasool said. Going back to version 5.1.0 required a React downgrade, which wasn't good for my project. We've also implemented 'postinstall' to patch the package.

JorgeGolo avatar Jun 20 '25 05:06 JorgeGolo