fix embedded link for encoded url

This commit is contained in:
Sean Yesmunt 2020-07-30 17:20:18 -04:00
parent 8e73a02863
commit c65afb201d

View file

@ -54,7 +54,9 @@ const SimpleLink = (props: SimpleLinkProps) => {
const embed = urlParams.get('embed');
if (embed) {
return <EmbedPlayButton uri={uri} />;
// Decode this since users might just copy it from the url bar
const decodedUri = decodeURI(uri);
return <EmbedPlayButton uri={decodedUri} />;
}
const webLink = formatLbryUrlForWeb(uri);