From bbba62317e8470700088c19cacd7a1df3f01e045 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 3 Feb 2020 13:02:49 -0500 Subject: [PATCH] use correct url for navigation (fixes issue with reposts) --- ui/component/claimPreviewTile/view.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/component/claimPreviewTile/view.jsx b/ui/component/claimPreviewTile/view.jsx index eb7391ca1..403470269 100644 --- a/ui/component/claimPreviewTile/view.jsx +++ b/ui/component/claimPreviewTile/view.jsx @@ -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(),