Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/honest-swans-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"react-share": patch
---

Remove "web" element from path for RedditShareButton

Current issue:
- The current share url leads to a "Page not found" error, making sharing to Reddit impossible
- Example: https://www.reddit.com/web/submit?url=http%3A%2F%2Flocalhost%3A3000%2Fblog%2Fblog-post&title=Blog+post&type=LINK

Fix:
- Changed the path so it works correctly
- Example: https://www.reddit.com/submit?url=http%3A%2F%2Flocalhost%3A3000%2Fblog%2Fblog-post&title=Blog+post&type=LINK
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/web/submit' +
'https://www.reddit.com/submit' +
objectToGetParams({
url,
title,
Expand Down