encode embed url too

This commit is contained in:
Sean Yesmunt 2021-01-22 16:48:03 -05:00
parent 26ece81da8
commit 513e239771

View file

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