From 7572c9a051d299e802906832f7cb2825e138a842 Mon Sep 17 00:00:00 2001 From: 6ea86b96 <6ea86b96@gmail.com> Date: Mon, 7 Aug 2017 20:07:39 +0700 Subject: [PATCH] Stop the back function removing the claim_id from the URI --- ui/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/js/main.js b/ui/js/main.js index 48f838331..aed81f1c8 100644 --- a/ui/js/main.js +++ b/ui/js/main.js @@ -34,7 +34,7 @@ window.addEventListener("popstate", (event, param) => { let action; if (hash !== "") { - const url = hash.split("#")[1]; + const url = hash.replace(/^#/, ""); const { params, scrollY } = event.state || {}; const queryString = toQueryString(params);