We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Issue: When sharing via Reddit, the link is not automatically populated
Proposed fix: Appending '/web' as a route before '/submit' seems to fix the issue
Today I used patch-package to patch react-share@4.4.1 for the project I'm working on.
react-share@4.4.1
Here is the diff that solved my problem:
diff --git a/node_modules/react-share/lib/RedditShareButton.js b/node_modules/react-share/lib/RedditShareButton.js index dc8ea2a..da2a296 100644 --- a/node_modules/react-share/lib/RedditShareButton.js +++ b/node_modules/react-share/lib/RedditShareButton.js @@ -9,7 +9,7 @@ var createShareButton_1 = __importDefault(require("./hocs/createShareButton")); function redditLink(url, _a) { var title = _a.title; (0, assert_1.default)(url, 'reddit.url'); - return ('https://www.reddit.com/submit' + + return ('https://www.reddit.com/web/submit' + (0, objectToGetParams_1.default)({ url: url, title: title,
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Issue:
When sharing via Reddit, the link is not automatically populated
Proposed fix:
Appending '/web' as a route before '/submit' seems to fix the issue
Today I used patch-package to patch
react-share@4.4.1
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: