From 228dc1c96a8bf513964cf7a7f1ce3de53dd310b1 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Mon, 3 Feb 2020 17:29:22 -0500 Subject: [PATCH] fix lbry:// links on desktop --- ui/component/common/markdown-preview-internal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/common/markdown-preview-internal.jsx b/ui/component/common/markdown-preview-internal.jsx index e37c0c793..b2d3e9a99 100644 --- a/ui/component/common/markdown-preview-internal.jsx +++ b/ui/component/common/markdown-preview-internal.jsx @@ -34,7 +34,7 @@ const SimpleText = (props: SimpleTextProps) => { const SimpleLink = (props: SimpleLinkProps) => { const { title, children } = props; let { href } = props; - if (href && href.startsWith('lbry://')) { + if (IS_WEB && href && href.startsWith('lbry://')) { href = formatLbryUrlForWeb(href); // using Link after formatLbryUrl to handle "/" vs "#/" // for web and desktop scenarios respectively