From efd0ac0645235f80123f1955f1f9cbd33f59390f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 19 Sep 2019 16:32:45 -0400 Subject: [PATCH] include claim_id in channel search --- src/ui/page/channel/view.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/page/channel/view.jsx b/src/ui/page/channel/view.jsx index 6ea75c6a2..8f7f7f214 100644 --- a/src/ui/page/channel/view.jsx +++ b/src/ui/page/channel/view.jsx @@ -63,6 +63,7 @@ function ChannelPage(props: Props) { openModal, supportOption, } = props; + const { channelName } = parseURI(uri); const { search } = location; const urlParams = new URLSearchParams(search); @@ -93,7 +94,7 @@ function ChannelPage(props: Props) { function handleSearch() { const fetchUrl = `${LIGHTHOUSE_URL}?s=${encodeURIComponent(searchQuery)}&channel=${encodeURIComponent( - uri.slice('lbry://'.length) + claim.permanent_url.slice('lbry://'.length) )}`; fetch(fetchUrl) .then(res => res.json())