From 2048087bb429cae785e1e1baae9f3b8f0f05a571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20Nyga=CC=8Ard?= Date: Mon, 12 Oct 2026 16:42:54 +0300 Subject: [PATCH] docs(readme): explain that Reddit does not prefill the shared link Reddit's submit page now ignores the `url` parameter on both /submit and /web/submit, which went back to "Page not found", so only the title is prefilled. Document the behavior and a text-post workaround built with openShareWindow instead of changing RedditShareButton, since the cause is on Reddit's side. Related to #545 and #546. Co-Authored-By: Claude Sonnet 5.5 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1004ccf5..97788f93 100644 --- a/README.md +++ b/README.md @@ -891,6 +891,15 @@ async function share() { - **Mobile app handoff opens a browser tab first.** This is controlled by the target platform and browser. See [Mobile app handoff](#mobile-app-handoff). - **React Server Components.** The package is marked with `"use client"`, so share buttons and icons can be imported directly from Server Components in frameworks such as Next.js. They render as client components. - **iOS PWAs show a blank page.** Standalone mode can show a blank intermediary page for schemes such as `mailto:` or native-app handoff URLs. This is a platform limitation. +- **Reddit does not prefill the link.** As of October 2026, Reddit's submit page ignores the `url` parameter and only prefills the title, so `RedditShareButton` opens the page without the link. This is controlled by Reddit. As a workaround, you can open a text post with the link in its body using `openShareWindow`: + + ```jsx + import { openShareWindow } from "react-share"; + + const params = new URLSearchParams({ selftext: "true", title: "Read this next", text: shareUrl }); + + openShareWindow(`https://www.reddit.com/submit?${params}`); + ``` ## Compatibility and versioning