nygardk / react-share

Social media share buttons and share counts for React
MIT License
2.6k stars 429 forks source link

react-share stopped working with react/ react-dom 17.0.2, and broken style text block showing in the twitter page #514

Open jobinkurianm opened 7 months ago

jobinkurianm commented 7 months ago

It looks like problem is with decoding '=' in the share url, (https://twitter.com/intent/tweet?url=https%3A%2 ..)

if we replace url= with url=this will work

image

ericasberry commented 7 months ago

I'm seeing the same issue and also observed the broken url parameter and that entering the corrected (decoded) URL in the browser works.

nygardk commented 7 months ago

Hello! Could you create a code sandbox for this issue?

jobinkurianm commented 7 months ago

Looks like sandbox blocked twitter url, Please see sample project in stackblitz

https://stackblitz.com/edit/stackblitz-starters-n8mswj

Tried different version of react-share with react/ react-dom 17.0.2, but no luck.

rahulkarasiTtn commented 7 months ago

Please update the version of react-share, it is fixed in the latest version.

iamamyaman commented 7 months ago

I am using the latest version still this issue is there @rahulkarasiTtn

ashraf-gemini commented 7 months ago

@rahulkarasiTtn I can double you on that, the latest release does address the twitter share fix