From 603217f554e5aefe91b6229b071583fca6e6ddeb Mon Sep 17 00:00:00 2001 From: 6ea86b96 <6ea86b96@gmail.com> Date: Thu, 27 Jul 2017 11:45:34 +0700 Subject: [PATCH] Fix a bug where refreshing strips the claim_id from the uri --- ui/js/reducers/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/js/reducers/app.js b/ui/js/reducers/app.js index 6ee007b86..497915e89 100644 --- a/ui/js/reducers/app.js +++ b/ui/js/reducers/app.js @@ -4,7 +4,7 @@ import lbry from "lbry"; const currentPath = () => { const hash = document.location.hash; - if (hash !== "") return hash.split("#")[1]; + if (hash !== "") return hash.replace(/^#/, ""); else return "/discover"; }; -- 2.45.3