From dd582f40097a83d60b3a2f4a81269cf297825f1a Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 14 Dec 2020 14:48:08 -0500 Subject: [PATCH] encode lbry url when shared from modal --- ui/util/url.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/util/url.js b/ui/util/url.js index d4812c097..0a6bc12f3 100644 --- a/ui/util/url.js +++ b/ui/util/url.js @@ -111,6 +111,7 @@ exports.generateShareUrl = ( } const urlParamsString = urlParams.toString(); - const url = `${domain}/${lbryWebUrl}` + (urlParamsString === '' ? '' : `?${urlParamsString}`); + + const url = `${domain}/${encodeURIComponent(lbryWebUrl)}` + (urlParamsString === '' ? '' : `?${urlParamsString}`); return url; };