encode lbry url when shared from modal

This commit is contained in:
Sean Yesmunt 2020-12-14 14:48:08 -05:00
parent 664e969730
commit dd582f4009

View file

@ -111,6 +111,7 @@ exports.generateShareUrl = (
} }
const urlParamsString = urlParams.toString(); const urlParamsString = urlParams.toString();
const url = `${domain}/${lbryWebUrl}` + (urlParamsString === '' ? '' : `?${urlParamsString}`);
const url = `${domain}/${encodeURIComponent(lbryWebUrl)}` + (urlParamsString === '' ? '' : `?${urlParamsString}`);
return url; return url;
}; };