use correct url for navigation (fixes issue with reposts)

This commit is contained in:
Sean Yesmunt 2020-02-03 13:02:49 -05:00
parent f1742eca25
commit bbba62317e

View file

@ -58,7 +58,8 @@ function ClaimPreviewTile(props: Props) {
const shouldFetch = claim === undefined;
const thumbnailUrl = useGetThumbnail(uri, claim, streamingUrl, getFile, placeholder) || thumbnail;
const claimsInChannel = (claim && claim.meta.claims_in_channel) || 0;
const navigateUrl = uri ? formatLbryUrlForWeb(uri) : undefined;
const navigateUrl = claim ? formatLbryUrlForWeb(claim.canonical_url) : undefined;
const navLinkProps = {
to: navigateUrl,
onClick: e => e.stopPropagation(),