From 8db4622c3aa301914468cbcde65decd15c9199d8 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 31 Mar 2020 16:35:33 -0400 Subject: [PATCH] don't decode search params because they might contain lbry urls --- ui/component/router/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/router/view.jsx b/ui/component/router/view.jsx index cf728b71b..df32388a6 100644 --- a/ui/component/router/view.jsx +++ b/ui/component/router/view.jsx @@ -131,7 +131,7 @@ function AppRouter(props: Props) { // react-router doesn't decode pathanmes before doing the route matching check // We have to redirect here because if we redirect on the server, it might get encoded again // in the browser causing a redirect loop - const decodedUrl = decodeURIComponent(pathname + search); + const decodedUrl = decodeURIComponent(pathname) + search; if (decodedUrl !== pathname + search) { return ; }