From 6f9c9d205222410de57b2ec3ceb9e8f19f6cfd90 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 13 Nov 2019 12:36:41 -0500 Subject: [PATCH] remove double slash so the image server doesn't redirect when we don't want to --- ui/component/cardMedia/view.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/component/cardMedia/view.jsx b/ui/component/cardMedia/view.jsx index fad59ecf9..6ba1476f4 100644 --- a/ui/component/cardMedia/view.jsx +++ b/ui/component/cardMedia/view.jsx @@ -17,7 +17,11 @@ class CardMedia extends React.PureComponent { return ; } - const url = thumbnail ? 'https://ext.thumbnails.lbry.com/400x,q55/' + thumbnail : Placeholder; + const url = thumbnail + ? 'https://ext.thumbnails.lbry.com/400x,q55/' + + // The image server will redirect if we don't remove the double slashes after http(s) + thumbnail.replace('https://', 'https:/').replace('http://', 'http:/') + : Placeholder; return
; } }