fix embedded link for encoded url
This commit is contained in:
parent
8e73a02863
commit
c65afb201d
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue