encode claim name in embed url

This commit is contained in:
Sean Yesmunt 2021-01-13 16:44:46 -05:00
parent 72ac5a5437
commit ee0bdf3a82

View file

@ -16,7 +16,7 @@ function generateEmbedUrl(claimName, claimId, includeStartTime, startTime, refer
urlParams.append('r', referralLink);
}
return `${URL}/$/embed/${claimName}/${claimId}?${urlParams.toString()}`;
return `${URL}/$/embed/${encodeURIComponent(claimName)}/${claimId}?${urlParams.toString()}`;
}
function generateDownloadUrl(claimName, claimId) {